다음을 통해 공유


ReflectedControllerDescriptor.GetCustomAttributes 메서드

정의

오버로드

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

이 멤버에 대해 정의된 사용자 지정 특성의 배열을 반환합니다(형식으로 식별됨).

GetCustomAttributes(Boolean)

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

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

매개 변수

inherit
Boolean

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

반환

Object[]

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

예외

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

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

적용 대상

GetCustomAttributes(Type, Boolean)

이 멤버에 대해 정의된 사용자 지정 특성의 배열을 반환합니다(형식으로 식별됨).

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이면 상속된 사용자 지정 특성에 대한 계층 체인을 조회합니다. 그렇지 않으면 false입니다.

반환

Object[]

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

예외

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

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

적용 대상