_MethodBase.GetCustomAttributes 메서드

정의

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetCustomAttributes 제공합니다.

오버로드

Name Description
GetCustomAttributes(Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetCustomAttributes(Boolean) 제공합니다.

GetCustomAttributes(Type, Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetCustomAttributes(Type, Boolean) 제공합니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

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

GetCustomAttributes(Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetCustomAttributes(Boolean) 제공합니다.

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[]

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

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 GetCustomAttributes 모든 사용자 지정 특성을 포함하는 배열을 반환합니다.

적용 대상

GetCustomAttributes(Type, Boolean)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetCustomAttributes(Type, Boolean) 제공합니다.

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[]

이 멤버에 적용된 사용자 지정 특성의 배열이거나, 특성이 적용되지 않은 경우 0(0) 요소가 있는 배열입니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 GetCustomAttributes 로 식별되는 사용자 지정 특성의 배열을 Type반환합니다.

적용 대상