CustomAttributeExtensions.IsDefined 메서드

정의

사용자 지정 특성이 요소에 적용되는지 여부를 나타냅니다.

오버로드

Name Description
IsDefined(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부와 필요에 따라 상위 항목에 적용되는지 여부를 나타냅니다.

IsDefined(Assembly, Type)

지정된 형식의 사용자 지정 특성이 지정된 어셈블리에 적용되는지 여부를 나타냅니다.

IsDefined(MemberInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부를 나타냅니다.

IsDefined(Module, Type)

지정된 형식의 사용자 지정 특성이 지정된 모듈에 적용되는지 여부를 나타냅니다.

IsDefined(ParameterInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지 여부를 나타냅니다.

IsDefined(ParameterInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지 여부와 필요에 따라 상위 항목에 적용되는지 여부를 나타냅니다.

IsDefined(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부와 필요에 따라 상위 항목에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::MemberInfo ^ element, Type ^ attributeType, bool inherit);
public static bool IsDefined(this System.Reflection.MemberInfo element, Type attributeType, bool inherit);
static member IsDefined : System.Reflection.MemberInfo * Type * bool -> bool
<Extension()>
Public Function IsDefined (element As MemberInfo, attributeType As Type, inherit As Boolean) As Boolean

매개 변수

element
MemberInfo

검사할 멤버입니다.

attributeType
Type

검색할 특성의 형식입니다.

inherit
Boolean

의 상위 항목을 검사하려면 그렇지 않으면 .

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

element 는 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닙니다.

적용 대상

IsDefined(Assembly, Type)

지정된 형식의 사용자 지정 특성이 지정된 어셈블리에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::Assembly ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.Assembly element, Type attributeType);
static member IsDefined : System.Reflection.Assembly * Type -> bool
<Extension()>
Public Function IsDefined (element As Assembly, attributeType As Type) As Boolean

매개 변수

element
Assembly

검사할 어셈블리입니다.

attributeType
Type

검색할 특성의 형식입니다.

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

적용 대상

IsDefined(MemberInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::MemberInfo ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.MemberInfo element, Type attributeType);
static member IsDefined : System.Reflection.MemberInfo * Type -> bool
<Extension()>
Public Function IsDefined (element As MemberInfo, attributeType As Type) As Boolean

매개 변수

element
MemberInfo

검사할 멤버입니다.

attributeType
Type

검색할 특성의 형식입니다.

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

element 는 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닙니다.

적용 대상

IsDefined(Module, Type)

지정된 형식의 사용자 지정 특성이 지정된 모듈에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::Module ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.Module element, Type attributeType);
static member IsDefined : System.Reflection.Module * Type -> bool
<Extension()>
Public Function IsDefined (element As Module, attributeType As Type) As Boolean

매개 변수

element
Module

검사할 모듈입니다.

attributeType
Type

검색할 특성의 형식입니다.

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

적용 대상

IsDefined(ParameterInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::ParameterInfo ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.ParameterInfo element, Type attributeType);
static member IsDefined : System.Reflection.ParameterInfo * Type -> bool
<Extension()>
Public Function IsDefined (element As ParameterInfo, attributeType As Type) As Boolean

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

attributeType
Type

검색할 특성의 형식입니다.

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

적용 대상

IsDefined(ParameterInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지 여부와 필요에 따라 상위 항목에 적용되는지 여부를 나타냅니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDefined(System::Reflection::ParameterInfo ^ element, Type ^ attributeType, bool inherit);
public static bool IsDefined(this System.Reflection.ParameterInfo element, Type attributeType, bool inherit);
static member IsDefined : System.Reflection.ParameterInfo * Type * bool -> bool
<Extension()>
Public Function IsDefined (element As ParameterInfo, attributeType As Type, inherit As Boolean) As Boolean

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

attributeType
Type

검색할 특성의 형식입니다.

inherit
Boolean

의 상위 항목을 검사하려면 그렇지 않으면 .

반품

true 지정된 형식의 특성이 적용 element되면 이고, false그렇지 않으면 .

예외

element 또는 attributeType .입니다 null.

attributeType 에서 파생되지 Attribute않았습니다.

적용 대상