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

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

반환

해당 필드에 attributeType 인스턴스가 하나 이상 정의되어 있으면 true이고, 그렇지 않으면 false입니다.

예외

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

적용 대상