CustomAttributeExtensions.IsDefined 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 지정 특성이 요소에 적용되는지 여부를 나타냅니다.
오버로드
| IsDefined(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지, 또는 선택적으로 상위 항목에 적용되었는지 여부를 결정합니다. |
| IsDefined(Assembly, Type) |
지정된 형식의 사용자 지정 특성이 지정된 어셈블리에 적용되었는지 여부를 나타냅니다. |
| IsDefined(MemberInfo, Type) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지 여부를 나타냅니다. |
| IsDefined(Module, Type) |
지정된 형식의 사용자 지정 특성이 지정된 모듈에 적용되었는지 여부를 나타냅니다. |
| IsDefined(ParameterInfo, Type) |
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되었는지 여부를 나타냅니다. |
| IsDefined(ParameterInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지, 또는 선택적으로 상위 항목에 적용되는지 여부를 나타냅니다. |
IsDefined(MemberInfo, Type, Boolean)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지, 또는 선택적으로 상위 항목에 적용되었는지 여부를 결정합니다.
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
element의 상위 요소를 검사하려면 true이고, 그렇지 않으면 false입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우
element가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우
적용 대상
IsDefined(Assembly, Type)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 어셈블리에 적용되었는지 여부를 나타냅니다.
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
검색할 특성의 형식입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우
적용 대상
IsDefined(MemberInfo, Type)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지 여부를 나타냅니다.
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
검색할 특성의 형식입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우
element가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우
적용 대상
IsDefined(Module, Type)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 모듈에 적용되었는지 여부를 나타냅니다.
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
검색할 특성의 형식입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우
적용 대상
IsDefined(ParameterInfo, Type)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되었는지 여부를 나타냅니다.
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
검색할 특성의 형식입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우
적용 대상
IsDefined(ParameterInfo, Type, Boolean)
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
- Source:
- CustomAttributeExtensions.cs
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는지, 또는 선택적으로 상위 항목에 적용되는지 여부를 나타냅니다.
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
element의 상위 요소를 검사하려면 true이고, 그렇지 않으면 false입니다.
반환
지정된 형식의 특성이 element에 적용되는 경우 true이고, 그렇지 않으면 false입니다.
예외
element 또는 attributeType가 null인 경우
attributeType이 Attribute에서 파생되지 않은 경우