ConstructorBuilder.GetCustomAttributes 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 생성자에 대해 정의된 사용자 지정 특성을 반환합니다.
오버로드
| Name | Description |
|---|---|
| GetCustomAttributes(Boolean) |
이 생성자에 대해 정의된 모든 사용자 지정 특성을 반환합니다. |
| GetCustomAttributes(Type, Boolean) |
지정된 형식으로 식별되는 사용자 지정 특성을 반환합니다. |
GetCustomAttributes(Boolean)
이 생성자에 대해 정의된 모든 사용자 지정 특성을 반환합니다.
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
기본 클래스에서 사용자 지정 특성의 상속을 제어합니다. 이 매개 변수는 무시됩니다.
반품
이 ConstructorBuilder 인스턴스가 나타내는 생성자의 모든 사용자 지정 특성을 나타내는 개체의 배열입니다.
예외
이 메서드는 현재 지원되지 않습니다.
설명
클래스가 inherit 기본 클래스에서 생성자를 상속하지 않으므로 매개 변수는 무시됩니다.
사용자 지정 특성을 얻으려면 호출CreateType하여 형식 빌드를 완료하고 반환된 형식에서 메서드를 호출 GetConstructor 하여 생성자를 검색한 다음 반환ConstructorInfo된 형식에서 메서드를 GetCustomAttributes 호출합니다.
적용 대상
GetCustomAttributes(Type, Boolean)
지정된 형식으로 식별되는 사용자 지정 특성을 반환합니다.
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
기본 클래스에서 사용자 지정 특성의 상속을 제어합니다. 이 매개 변수는 무시됩니다.
반품
이 생성자의 특성을 나타내는 개체 배열입니다.
예외
이 메서드는 현재 지원되지 않습니다.
설명
클래스가 inherit 기본 클래스에서 생성자를 상속하지 않으므로 매개 변수는 무시됩니다.
사용자 지정 특성을 얻으려면 호출CreateType하여 형식 빌드를 완료하고 반환된 형식에서 메서드를 호출 GetConstructor 하여 생성자를 검색한 다음 반환ConstructorInfo된 형식에서 메서드를 GetCustomAttributes 호출합니다.