_EventInfo.GetCustomAttributes 메서드

정의

버전에 관계없이 GetCustomAttributes 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

오버로드

GetCustomAttributes(Boolean)

버전에 관계없이 GetCustomAttributes(Boolean) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetCustomAttributes(Type, Boolean)

버전에 관계없이 GetCustomAttributes(Type, Boolean) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

GetCustomAttributes 메서드는이 멤버에 적용 된 모든 특성을 반환 합니다.

GetCustomAttributes(Boolean)

버전에 관계없이 GetCustomAttributes(Boolean) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

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

매개 변수

inherit
Boolean

특성을 찾기 위해 멤버의 상속 체인을 검색하려면 true로 설정하고, 그렇지 않으면 false로 설정합니다.

반환

Object[]

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

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

GetCustomAttributes 메서드에서 검색 된 MethodInfo 개체에 대 한는 AddEventHandler 이벤트의 메서드 public이 아닌 메서드를 반환할지 여부를 지정

적용 대상

GetCustomAttributes(Type, Boolean)

버전에 관계없이 GetCustomAttributes(Type, Boolean) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

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

매개 변수

attributeType
Type

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

inherit
Boolean

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

반환

Object[]

이 멤버에 적용된 사용자 지정 특성의 배열을 반환하거나, 적용된 특성이 없는 경우에는 요소가 없는 배열을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

합니다 GetCustomAttributes 으로 식별 된 사용자 지정 특성의 배열을 반환 합니다 Type합니다.

적용 대상