TypeDelegator.GetCustomAttributes 메서드

정의

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

오버로드

GetCustomAttributes(Boolean)

이 형식에 대해 정의된 모든 사용자 지정 특성을 반환하며 이 형식의 상속 관계를 검색할지 여부를 지정합니다.

GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

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

이 형식에 대해 정의된 모든 사용자 지정 특성이 포함된 개체의 배열입니다.

예외

사용자 지정 특성 형식을 로드할 수 없는 경우

적용 대상

GetCustomAttributes(Type, Boolean)

Source:
TypeDelegator.cs
Source:
TypeDelegator.cs
Source:
TypeDelegator.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 매개 변수에 일치하는 이 형식 내에 정의된 사용자 지정 특성이 포함된 개체의 배열. 이 형식의 상속 관계를 검색할지 여부도 지정합니다. 또는 이 형식에 사용자 지정 특성이 정의되어 있지 않으면 null입니다.

예외

attributeType이(가) null인 경우

사용자 지정 특성 형식을 로드할 수 없는 경우

적용 대상