AttributeTable.GetCustomAttributes 메서드

정의

지정된 인수에 제공된 모든 특성의 열거형을 반환합니다.

오버로드

Name Description
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 열거형이 반환되지 않습니다.

예외

typenull입니다.

적용 대상

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

종속성 속성의 소유자 형식입니다.

dp
DependencyProperty

사용자 지정 특성을 가져올 종속성 속성입니다.

반품

조건과 일치하는 특성의 열거형입니다. 이렇게 하면 null 열거형이 반환되지 않습니다.

예외

ownerType 또는 dp .입니다 null.

적용 대상