다음을 통해 공유


ControllerDescriptor.GetCustomAttributes 메서드

정의

오버로드

GetCustomAttributes(Boolean)

이 멤버에 대해 정의된 사용자 지정 특성을 검색합니다(명명된 특성 제외).

GetCustomAttributes(Type, Boolean)

이 멤버에 대해 정의된 지정된 형식의 사용자 지정 특성을 검색합니다(명명된 특성 제외).

GetCustomAttributes(Boolean)

이 멤버에 대해 정의된 사용자 지정 특성을 검색합니다(명명된 특성 제외).

public virtual object[] GetCustomAttributes(bool inherit);
abstract member GetCustomAttributes : bool -> obj[]
override this.GetCustomAttributes : bool -> obj[]
Public Overridable Function GetCustomAttributes (inherit As Boolean) As Object()

매개 변수

inherit
Boolean

true이면 상속된 사용자 지정 특성에 대한 계층 체인을 조회합니다. 그렇지 않으면 false입니다.

반환

Object[]

사용자 지정 특성의 배열 또는 사용자 지정 특성이 없는 경우 빈 배열입니다.

구현

예외

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

이 멤버에 대해 정의된 형식 attributeType 의 특성이 두 개 이상 있습니다.

적용 대상

GetCustomAttributes(Type, Boolean)

이 멤버에 대해 정의된 지정된 형식의 사용자 지정 특성을 검색합니다(명명된 특성 제외).

public virtual object[] GetCustomAttributes(Type attributeType, bool inherit);
abstract member GetCustomAttributes : Type * bool -> obj[]
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overridable Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

매개 변수

attributeType
Type

사용자 지정 특성의 형식입니다.

inherit
Boolean

true이면 상속된 사용자 지정 특성에 대한 계층 체인을 조회합니다. 그렇지 않으면 false입니다.

반환

Object[]

사용자 지정 특성의 배열 또는 사용자 지정 특성이 없는 경우 빈 배열입니다.

구현

예외

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

이 멤버에 대해 정의된 형식 attributeType 의 특성이 두 개 이상 있습니다.

매개 변수가 attributeType null(Visual Basic의 경우 Nothing)입니다.

적용 대상