AttributeTableContainer.GetAttributes 메서드 (Assembly, Type, Func<Object, Object>)
지정된 어셈블리의 특성을 열거합니다.
네임스페이스: Microsoft.Windows.Design.Metadata
어셈블리: Microsoft.Windows.Design.Extensibility(Microsoft.Windows.Design.Extensibility.dll)
구문
‘선언
Public Function GetAttributes ( _
assembly As Assembly, _
attributeType As Type, _
reflectionMapper As Func(Of Object, Object) _
) As IEnumerable(Of Object)
public IEnumerable<Object> GetAttributes(
Assembly assembly,
Type attributeType,
Func<Object, Object> reflectionMapper
)
public:
IEnumerable<Object^>^ GetAttributes(
Assembly^ assembly,
Type^ attributeType,
Func<Object^, Object^>^ reflectionMapper
)
member GetAttributes :
assembly:Assembly *
attributeType:Type *
reflectionMapper:Func<Object, Object> -> IEnumerable<Object>
public function GetAttributes(
assembly : Assembly,
attributeType : Type,
reflectionMapper : Func<Object, Object>
) : IEnumerable<Object>
매개 변수
- assembly
형식: System.Reflection.Assembly
특성을 열거할 어셈블리입니다.
- attributeType
형식: System.Type
열거할 특성 형식이거나, 모든 특성을 열거하려는 경우 nullNull 참조(Visual Basic의 경우 Nothing)입니다.
- reflectionMapper
형식: System.Func<Object, Object>
들어오는 리플렉션 메타데이터를 런타임 메타데이터에 매핑하는 선택적 매핑 함수입니다.
반환 값
형식: System.Collections.Generic.IEnumerable<Object>
특성의 열거형입니다.
예외
예외 | 상황 |
---|---|
ArgumentNullException | assembly는 nullNull 참조(Visual Basic의 경우 Nothing)입니다. |
설명
반환된 특성은 실제 어셈블리에 정의된 특성 및 이 컨테이너에 추가된 특성 테이블에서 정의된 특성이 포함합니다. 특성 테이블에 정의된 특성은 어셈블리에 정의된 특성보다 우선합니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.