PropertyBuilder.GetCustomAttributes 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 속성에 정의된 모든 사용자 지정 특성을 반환합니다.
오버로드
| Name | Description |
|---|---|
| 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이 속성의 상속 체인을 따라 이동하여 사용자 지정 특성을 찾습니다.
반품
이 반영된 멤버에 정의된 사용자 지정 특성의 배열이거나 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이 속성의 상속 체인을 따라 이동하여 사용자 지정 특성을 찾습니다.
반품
모든 사용자 지정 특성의 배열입니다.
예외
이 메서드는 지원되지 않습니다.
설명
Type.GetType 또는 Assembly.GetType을 사용하여 속성의 부모 형식을 반영하고, 형식에서 Reflection 속성 개체를 검색하고, PropertyInfo.GetCustomAttributes를 호출합니다.