MethodBuilder.GetCustomAttributes 메서드

정의

이 메서드에 정의된 사용자 지정 특성을 반환합니다.

오버로드

GetCustomAttributes(Boolean)

이 메서드에 대해 정의된 모든 사용자 지정 특성을 반환합니다.

GetCustomAttributes(Type, Boolean)

지정된 형식으로 식별되는 사용자 지정 특성을 반환합니다.

GetCustomAttributes(Boolean)

Source:
MethodBuilder.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

이 멤버의 상속 체인을 검색하여 사용자 지정 특성을 찾을지 여부를 지정합니다.

반환

Object[]

이 메서드의 모든 사용자 지정 특성을 나타내는 개체 배열을 반환합니다.

예외

이 메서드는 현재 지원되지 않습니다. GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 를 사용하여 메서드를 검색하고 반환된 GetCustomAttributes(Boolean) 에 대해 MethodInfo를 호출합니다.

적용 대상

GetCustomAttributes(Type, Boolean)

Source:
MethodBuilder.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

이 멤버의 상속 체인을 검색하여 사용자 지정 특성을 찾을지 여부를 지정합니다.

반환

Object[]

attributeType 형식인 이 메서드의 특성을 나타내는 개체의 배열을 반환합니다.

예외

이 메서드는 현재 지원되지 않습니다. GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 를 사용하여 메서드를 검색하고 반환된 GetCustomAttributes(Boolean) 에 대해 MethodInfo를 호출합니다.

적용 대상