ConstructorBuilder.GetCustomAttributes 메서드

정의

해당 생성자에 대해 정의된 사용자 지정 특성을 반환합니다.

오버로드

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

Source:
ConstructorBuilder.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[]

ConstructorBuilder 인스턴스로 나타내는 생성자의 모든 사용자 지정 특성을 나타내는 개체 배열입니다.

예외

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

설명

클래스가 inherit 기본 클래스에서 생성자를 상속하지 않으므로 매개 변수는 무시됩니다.

사용자 지정 특성을 얻으려면 를 호출 CreateType하여 형식 빌드를 완료하고 반환된 형식에서 메서드를 GetConstructor 호출하여 생성자를 검색한 다음 반환된 GetCustomAttributes 에서 메서드를 ConstructorInfo호출합니다.

적용 대상

GetCustomAttributes(Type, Boolean)

Source:
ConstructorBuilder.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[]

이 생성자의 특성을 나타내는 개체 배열입니다.

예외

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

설명

클래스가 inherit 기본 클래스에서 생성자를 상속하지 않으므로 매개 변수는 무시됩니다.

사용자 지정 특성을 얻으려면 를 호출 CreateType하여 형식 빌드를 완료하고 반환된 형식에서 메서드를 GetConstructor 호출하여 생성자를 검색한 다음 반환된 GetCustomAttributes 에서 메서드를 ConstructorInfo호출합니다.

적용 대상