ICustomAttributeProvider.GetCustomAttributes 方法

返回此成员上定义的自定义属性。

重载列表

名称 说明
ICustomAttributeProvider.GetCustomAttributes (Boolean) 返回在此成员上定义的所有自定义属性(命名属性除外)的数组,或如果没有自定义属性,返回一个空数组。

由 .NET Compact Framework 支持。
ICustomAttributeProvider.GetCustomAttributes (Type, Boolean) 返回此成员上定义的自定义属性的数组(由类型标识),如果该类型没有自定义属性,则返回空数组。

由 .NET Compact Framework 支持。

请参见

参考

ICustomAttributeProvider 接口
ICustomAttributeProvider 成员
System.Reflection 命名空间