AttributeTable.GetCustomAttributes 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 인수에 대해 제공되는 모든 특성의 열거형을 반환합니다.
오버로드
| GetCustomAttributes(Type) |
지정된 형식에 대해 제공되는 모든 클래스 수준 특성의 열거형을 반환합니다. |
| GetCustomAttributes(Type, MemberDescriptor) |
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다. |
| GetCustomAttributes(Type, MemberInfo) |
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다. |
| GetCustomAttributes(Type, String) |
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다. |
| GetCustomAttributes(Type, DependencyProperty) |
지정된 형식의 지정된 종속성에 대해 제공되는 모든 특성의 열거형을 반환합니다. |
설명
이 메서드는 null 열거형을 반환하지 않습니다.
GetCustomAttributes(Type)
지정된 형식에 대해 제공되는 모든 클래스 수준 특성의 열거형을 반환합니다.
public:
System::Collections::IEnumerable ^ GetCustomAttributes(Type ^ type);
public System.Collections.IEnumerable GetCustomAttributes (Type type);
member this.GetCustomAttributes : Type -> System.Collections.IEnumerable
Public Function GetCustomAttributes (type As Type) As IEnumerable
매개 변수
- type
- Type
클래스 수준 특성을 가져올 형식입니다.
반환
조건과 일치하는 특성의 열거형입니다. null 열거형을 반환하지 않습니다.
예외
type이(가) null인 경우
적용 대상
GetCustomAttributes(Type, MemberDescriptor)
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다.
public:
System::Collections::IEnumerable ^ GetCustomAttributes(Type ^ ownerType, System::ComponentModel::MemberDescriptor ^ descriptor);
public System.Collections.IEnumerable GetCustomAttributes (Type ownerType, System.ComponentModel.MemberDescriptor descriptor);
member this.GetCustomAttributes : Type * System.ComponentModel.MemberDescriptor -> System.Collections.IEnumerable
Public Function GetCustomAttributes (ownerType As Type, descriptor As MemberDescriptor) As IEnumerable
매개 변수
- ownerType
- Type
멤버가 포함된 형식입니다.
- descriptor
- MemberDescriptor
사용자 지정 특성을 가져올 멤버 설명자입니다.
반환
조건과 일치하는 특성의 열거형입니다. null 열거형을 반환하지 않습니다.
예외
ownerType 또는 descriptor가 null인 경우
적용 대상
GetCustomAttributes(Type, MemberInfo)
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다.
public:
System::Collections::IEnumerable ^ GetCustomAttributes(Type ^ ownerType, System::Reflection::MemberInfo ^ member);
public System.Collections.IEnumerable GetCustomAttributes (Type ownerType, System.Reflection.MemberInfo member);
member this.GetCustomAttributes : Type * System.Reflection.MemberInfo -> System.Collections.IEnumerable
Public Function GetCustomAttributes (ownerType As Type, member As MemberInfo) As IEnumerable
매개 변수
- ownerType
- Type
멤버가 포함된 형식입니다.
- member
- MemberInfo
특성을 제공할 멤버입니다.
반환
조건과 일치하는 특성의 열거형입니다. null 열거형을 반환하지 않습니다.
예외
ownerType 또는 member가 null인 경우
적용 대상
GetCustomAttributes(Type, String)
지정된 형식의 지정된 멤버에 대해 제공되는 모든 특성의 열거형을 반환합니다.
public:
System::Collections::IEnumerable ^ GetCustomAttributes(Type ^ ownerType, System::String ^ memberName);
public System.Collections.IEnumerable GetCustomAttributes (Type ownerType, string memberName);
member this.GetCustomAttributes : Type * string -> System.Collections.IEnumerable
Public Function GetCustomAttributes (ownerType As Type, memberName As String) As IEnumerable
매개 변수
- ownerType
- Type
종속성 속성의 소유자 형식입니다.
- memberName
- String
특성을 제공할 멤버의 이름입니다.
반환
조건과 일치하는 특성의 열거형입니다. null 열거형을 반환하지 않습니다.
예외
ownerType 또는 memberName가 null인 경우
적용 대상
GetCustomAttributes(Type, DependencyProperty)
지정된 형식의 지정된 종속성에 대해 제공되는 모든 특성의 열거형을 반환합니다.
public:
System::Collections::IEnumerable ^ GetCustomAttributes(Type ^ ownerType, System::Windows::DependencyProperty ^ dp);
public System.Collections.IEnumerable GetCustomAttributes (Type ownerType, System.Windows.DependencyProperty dp);
member this.GetCustomAttributes : Type * System.Windows.DependencyProperty -> System.Collections.IEnumerable
Public Function GetCustomAttributes (ownerType As Type, dp As DependencyProperty) As IEnumerable
매개 변수
- ownerType
- Type
종속성 속성의 소유자 형식입니다.
사용자 지정 특성을 가져오는 종속성 특성입니다.
반환
조건과 일치하는 특성의 열거형입니다. null 열거형을 반환하지 않습니다.
예외
ownerType 또는 dp가 null인 경우