Share via


ParameterDescriptor.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인 경우

적용 대상