Поделиться через


AttributeTableContainer.GetLocalAttributes - метод (MemberInfo, Type, Func<Object, Object>)

Перечисляет настраиваемые атрибуты, определенные для указанного члена, включая атрибуты, унаследованные от базовых членов.

Пространство имен:  Microsoft.Windows.Design.Metadata
Сборка:  Microsoft.Windows.Design.Extensibility (в Microsoft.Windows.Design.Extensibility.dll)

Синтаксис

'Декларация
Public Function GetLocalAttributes ( _
    member As MemberInfo, _
    attributeType As Type, _
    reflectionMapper As Func(Of Object, Object) _
) As IEnumerable(Of Object)
public IEnumerable<Object> GetLocalAttributes(
    MemberInfo member,
    Type attributeType,
    Func<Object, Object> reflectionMapper
)
public:
IEnumerable<Object^>^ GetLocalAttributes(
    MemberInfo^ member, 
    Type^ attributeType, 
    Func<Object^, Object^>^ reflectionMapper
)
member GetLocalAttributes : 
        member:MemberInfo * 
        attributeType:Type * 
        reflectionMapper:Func<Object, Object> -> IEnumerable<Object> 
public function GetLocalAttributes(
    member : MemberInfo, 
    attributeType : Type, 
    reflectionMapper : Func<Object, Object>
) : IEnumerable<Object>

Параметры

  • attributeType
    Тип: System.Type
    Тип извлекаемого атрибута или nullпустая ссылка (Nothing в Visual Basic) для всех атрибутов.
  • reflectionMapper
    Тип: System.Func<Object, Object>
    Необязательная функция сопоставления для сравнения входящих метаданных отражения с метаданными среды выполнения.

Возвращаемое значение

Тип: System.Collections.Generic.IEnumerable<Object>
Перечисление атрибутов.

Исключения

Исключение Условие
ArgumentNullException

Параметр member имеет значение nullпустая ссылка (Nothing в Visual Basic).

Безопасность платформы .NET Framework

См. также

Ссылки

AttributeTableContainer Класс

GetLocalAttributes - перегрузка

Microsoft.Windows.Design.Metadata - пространство имен