EnumBuilder.IsDefined(Type, Boolean) 메서드

정의

지정된 사용자 지정 특성 형식이 정의되어 있는지 확인합니다.

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

매개 변수

attributeType
Type

Type 사용자 지정 특성이 적용되는 개체입니다.

inherit
Boolean

이 멤버의 상속 체인을 검색하여 특성을 찾을지 여부를 지정합니다.

반품

하나 이상의 인스턴스 가 이 멤버에 정의되어 있으면 그렇지 않으면 .

예외

이 메서드는 현재 완료되지 않은 형식에서 지원되지 않습니다.

설명

해결 방법으로 완성된 형식에 대해 사용자 지정 특성이 정의되어 있는지 확인하려면 형식을 검색 GetType 하고 반환GetCustomAttributes된 형식을 호출 Type 합니다.

적용 대상