CustomAttributeExtensions.IsDefined 메서드
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 지정 특성이 요소에 적용되는지 여부를 나타냅니다.
IsDefined(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지, 또는 선택적으로 상위 항목에 적용되었는지 여부를 결정합니다. |
IsDefined(Assembly, Type) |
지정된 형식의 사용자 지정 특성이 지정된 어셈블리에 적용되었는지 여부를 나타냅니다. |
IsDefined(MemberInfo, Type) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지 여부를 나타냅니다. |
IsDefined(Module, Type) |
지정된 형식의 사용자 지정 특성이 지정된 모듈에 적용되었는지 여부를 나타냅니다. |
IsDefined(ParameterInfo, Type) |
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되었는지 여부를 나타냅니다. |
IsDefined(ParameterInfo, 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
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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에서 파생되지 않은 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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에서 파생되지 않은 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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에서 파생되지 않은 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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에서 파생되지 않은 경우
적용 대상
.NET 9 및 기타 버전
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.