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

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

반환

지정된 사용자 지정 특성 유형이 정의되어 있으면true 이고, 정의되어 있지 않으면 false입니다.

예외

이 메서드는 현재 지원되지 않습니다. GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) 를 사용하여 메서드를 검색하고 반환된 IsDefined(Type, Boolean) 에 대해 MethodInfo를 호출합니다.

적용 대상