_Assembly.GetCustomAttributes 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 COM 对象提供对 GetCustomAttributes 方法的与版本无关的访问。
重载
| GetCustomAttributes(Type, Boolean) | 为 COM 对象提供对 GetCustomAttributes(Type, Boolean) 方法的与版本无关的访问。 | 
| GetCustomAttributes(Boolean) | 为 COM 对象提供对 GetCustomAttributes(Boolean) 方法的与版本无关的访问。 | 
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。
方法 GetCustomAttributes 获取此程序集的自定义属性。
GetCustomAttributes(Type, Boolean)
为 COM 对象提供对 GetCustomAttributes(Type, Boolean) 方法的与版本无关的访问。
public:
 cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);public object[] GetCustomAttributes(Type attributeType, bool inherit);abstract member GetCustomAttributes : Type * bool -> obj[]Public Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()参数
返回
类型 Object 的数组,其包含由 attributeType 指定的此程序集的自定义属性。
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。
方法 GetCustomAttributes 获取此程序集的所有自定义属性。
另请参阅
适用于
GetCustomAttributes(Boolean)
为 COM 对象提供对 GetCustomAttributes(Boolean) 方法的与版本无关的访问。
public:
 cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);public object[] GetCustomAttributes(bool inherit);abstract member GetCustomAttributes : bool -> obj[]Public Function GetCustomAttributes (inherit As Boolean) As Object()参数
返回
类型 Object 的数组包含此程序集的自定义属性。
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。
方法 GetCustomAttributes 获取此程序集的所有自定义属性。