FieldBuilder.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

특성의 형식입니다.

inherit
Boolean

기본 클래스에서 사용자 지정 특성의 상속을 제어합니다.

반품

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

예외

이 메서드는 현재 지원되지 않습니다. 반환GetField(String, BindingFlags)된 필드를 사용하여 IsDefined(Type, Boolean) 검색하고 호출 FieldInfo 합니다.

적용 대상