ComAwareEventInfo.GetCustomAttributes 메서드

정의

파생 클래스에서 재정의된 경우 이 멤버에 적용된 모든 특성을 반환합니다.

오버로드

GetCustomAttributes(Boolean)

파생 클래스에서 재정의된 경우 이 멤버에 적용된 사용자 지정 특성을 모두 포함하는 배열을 가져옵니다.

GetCustomAttributes(Type, Boolean)

파생 클래스에서 재정의된 경우 이 멤버에 적용된, 지정된 형식의 사용자 지정 특성을 모두 포함하는 배열을 가져옵니다.

GetCustomAttributes(Boolean)

Source:
ComAwareEventInfo.cs
Source:
ComAwareEventInfo.cs
Source:
ComAwareEventInfo.cs

파생 클래스에서 재정의된 경우 이 멤버에 적용된 사용자 지정 특성을 모두 포함하는 배열을 가져옵니다.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

매개 변수

inherit
Boolean

이 멤버의 상속 체인을 검색하여 특성을 찾으려면 true이고 그렇지 않으면 false입니다.

반환

Object[]

모든 사용자 지정 특성을 포함하는 배열이거나, 정의된 특성이 없는 경우 요소가 없는 배열입니다.

예외

이 멤버가 리플렉션 전용 컨텍스트에 로드된 형식에 속하는 경우. 방법: 리플렉션 전용 컨텍스트에 어셈블리 로드를 참조하세요.

사용자 지정 특성 형식을 로드할 수 없는 경우

설명

이 메서드는 GetCustomAttributes 기본 개체의 메서드를 호출합니다 EventInfo .

추가 정보

적용 대상

GetCustomAttributes(Type, Boolean)

Source:
ComAwareEventInfo.cs
Source:
ComAwareEventInfo.cs
Source:
ComAwareEventInfo.cs

파생 클래스에서 재정의된 경우 이 멤버에 적용된, 지정된 형식의 사용자 지정 특성을 모두 포함하는 배열을 가져옵니다.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public override object[] GetCustomAttributes (Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

매개 변수

attributeType
Type

검색할 특성 형식입니다. 이 형식에 할당할 수 있는 특성만 반환할 수 있습니다.

inherit
Boolean

이 멤버의 상속 체인을 검색하여 특성을 찾으려면 true이고 그렇지 않으면 false입니다.

반환

Object[]

지정된 형식의 모든 사용자 지정 특성을 포함하는 배열이거나, 정의된 특성이 없는 경우 요소가 없는 배열입니다.

예외

attributeType이(가) null인 경우

이 멤버가 리플렉션 전용 컨텍스트에 로드된 형식에 속하는 경우. 방법: 리플렉션 전용 컨텍스트에 어셈블리 로드

사용자 지정 특성 형식을 로드할 수 없는 경우

추가 정보

적용 대상