PropertyBuilder.IsDefined(Type, Boolean) 메서드

정의

attributeType의 인스턴스가 이 속성에 하나 이상 정의되어 있는지 여부를 나타냅니다.

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

이 속성의 상속 체인을 따라 사용자 지정 특성을 찾을 것인지 여부를 지정합니다.

반환

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

예외

이 메서드는 지원되지 않습니다.

설명

Type.GetType 또는 Assembly.GetType을 사용하여 속성의 부모 형식을 반영하고, 형식에서 Reflection 속성 개체를 검색하고, PropertyInfo.IsDefined를 호출합니다.

적용 대상