PropertyBuilder.GetCustomAttributes 메서드

정의

이 속성에 대해 정의된 사용자 지정 특성을 모두 반환합니다.

오버로드

GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

이 속성에 대한 사용자 지정 특성의 배열을 모두 반환합니다.

GetCustomAttributes(Type, Boolean)

Source:
PropertyBuilder.cs

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

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이면 이 속성의 상속 체인을 따라 사용자 지정 특성을 찾습니다

반환

Object[]

이 리플렉션된 멤버에 정의된 사용자 지정 특성의 배열이거나 이 멤버에 정의된 특성이 없는 경우 null입니다.

예외

이 메서드는 지원되지 않습니다.

설명

Type.GetType 또는 Assembly.GetType을 사용하여 속성의 부모 형식을 반영하고, 형식에서 Reflection 속성 개체를 검색하고, PropertyInfo.GetCustomAttributes를 호출합니다.

적용 대상

GetCustomAttributes(Boolean)

Source:
PropertyBuilder.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이면 이 속성의 상속 체인을 따라 사용자 지정 특성을 찾습니다

반환

Object[]

모든 사용자 지정 특성의 배열입니다.

예외

이 메서드는 지원되지 않습니다.

설명

Type.GetType 또는 Assembly.GetType을 사용하여 속성의 부모 형식을 반영하고, 형식에서 Reflection 속성 개체를 검색하고, PropertyInfo.GetCustomAttributes를 호출합니다.

적용 대상