MemberInfo.ICustomAttributeProvider.GetCustomAttributes Метод
Определение
Перегрузки
ICustomAttributeProvider.GetCustomAttributes(Boolean) |
Возвращает массив всех настраиваемых атрибутов, определенных для этого элемента, за исключением именованных атрибутов, или пустой массив, если атрибуты отсутствуют.Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes. |
ICustomAttributeProvider.GetCustomAttributes(Type, Boolean) |
Возвращает массив настраиваемых атрибутов, определенных для этого элемента с учетом типа, или пустой массив, если отсутствуют настраиваемые атрибуты определенного типа.Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type. |
ICustomAttributeProvider.GetCustomAttributes(Boolean)
Возвращает массив всех настраиваемых атрибутов, определенных для этого элемента, за исключением именованных атрибутов, или пустой массив, если атрибуты отсутствуют.Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes.
virtual cli::array <System::Object ^> ^ System.Reflection.ICustomAttributeProvider.GetCustomAttributes(bool inherit) = System::Reflection::ICustomAttributeProvider::GetCustomAttributes;
object[] ICustomAttributeProvider.GetCustomAttributes (bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.GetCustomAttributes : bool -> obj[]
override this.System.Reflection.ICustomAttributeProvider.GetCustomAttributes : bool -> obj[]
Function GetCustomAttributes (inherit As Boolean) As Object() Implements ICustomAttributeProvider.GetCustomAttributes
Параметры
- inherit
- Boolean
Значение true
, если требуется просмотреть цепочку иерархии для поиска унаследованного настраиваемого атрибута.When true
, look up the hierarchy chain for the inherited custom attribute.
Возвращаемое значение
- Object[]
Массив объектов, представляющих настраиваемые атрибуты, или пустой массив.An array of Objects representing custom attributes, or an empty array.
Реализации
Применяется к
ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)
Возвращает массив настраиваемых атрибутов, определенных для этого элемента с учетом типа, или пустой массив, если отсутствуют настраиваемые атрибуты определенного типа.Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type.
virtual cli::array <System::Object ^> ^ System.Reflection.ICustomAttributeProvider.GetCustomAttributes(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::GetCustomAttributes;
object[] ICustomAttributeProvider.GetCustomAttributes (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.GetCustomAttributes : Type * bool -> obj[]
override this.System.Reflection.ICustomAttributeProvider.GetCustomAttributes : Type * bool -> obj[]
Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object() Implements ICustomAttributeProvider.GetCustomAttributes
Параметры
- attributeType
- Type
Тип настраиваемых атрибутов.The type of the custom attributes.
- inherit
- Boolean
Значение true
, если требуется просмотреть цепочку иерархии для поиска унаследованного настраиваемого атрибута.When true
, look up the hierarchy chain for the inherited custom attribute.
Возвращаемое значение
- Object[]
Массив объектов, представляющих настраиваемые атрибуты, или пустой массив.An array of Objects representing custom attributes, or an empty array.