CustomAttributeExtensions.GetCustomAttribute 메서드
정의
지정된 요소에 적용된 사용자 지정 특성을 검색합니다.Retrieves a custom attribute that is applied to a specified element.
오버로드
GetCustomAttribute(Assembly, Type) |
지정된 어셈블리에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified assembly. |
GetCustomAttribute(MemberInfo, Type) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member. |
GetCustomAttribute(Module, Type) |
지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified module. |
GetCustomAttribute(ParameterInfo, Type) |
지정된 매개 변수에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter. |
GetCustomAttribute(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttribute(ParameterInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는 컬렉션을 검색하거나 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter. |
GetCustomAttribute<T>(ParameterInfo, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는 컬렉션을 검색하거나 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter. |
GetCustomAttribute<T>(MemberInfo, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttribute<T>(ParameterInfo) |
지정된 매개 변수에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter. |
GetCustomAttribute<T>(Module) |
지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified module. |
GetCustomAttribute<T>(MemberInfo) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member. |
GetCustomAttribute<T>(Assembly) |
지정된 어셈블리에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified assembly. |
GetCustomAttribute(Assembly, Type)
지정된 어셈블리에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified assembly.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::Assembly ^ element, Type ^ attributeType);
public static Attribute GetCustomAttribute (this System.Reflection.Assembly element, Type attributeType);
public static Attribute? GetCustomAttribute (this System.Reflection.Assembly element, Type attributeType);
static member GetCustomAttribute : System.Reflection.Assembly * Type -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As Assembly, attributeType As Type) As Attribute
매개 변수
- element
- Assembly
조사할 어셈블리입니다.The assembly to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
반환
이런 특성이 없을 경우 attributeType
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute(MemberInfo, Type)
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::MemberInfo ^ element, Type ^ attributeType);
public static Attribute GetCustomAttribute (this System.Reflection.MemberInfo element, Type attributeType);
public static Attribute? GetCustomAttribute (this System.Reflection.MemberInfo element, Type attributeType);
static member GetCustomAttribute : System.Reflection.MemberInfo * Type -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As MemberInfo, attributeType As Type) As Attribute
매개 변수
- element
- MemberInfo
검사할 멤버입니다.The member to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
반환
이런 특성이 없을 경우 attributeType
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute(Module, Type)
지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified module.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::Module ^ element, Type ^ attributeType);
public static Attribute GetCustomAttribute (this System.Reflection.Module element, Type attributeType);
public static Attribute? GetCustomAttribute (this System.Reflection.Module element, Type attributeType);
static member GetCustomAttribute : System.Reflection.Module * Type -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As Module, attributeType As Type) As Attribute
매개 변수
- element
- Module
검사할 모듈입니다.The module to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
반환
이런 특성이 없을 경우 attributeType
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute(ParameterInfo, Type)
지정된 매개 변수에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::ParameterInfo ^ element, Type ^ attributeType);
public static Attribute GetCustomAttribute (this System.Reflection.ParameterInfo element, Type attributeType);
public static Attribute? GetCustomAttribute (this System.Reflection.ParameterInfo element, Type attributeType);
static member GetCustomAttribute : System.Reflection.ParameterInfo * Type -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As ParameterInfo, attributeType As Type) As Attribute
매개 변수
- element
- ParameterInfo
검사할 매개 변수입니다.The parameter to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
반환
이런 특성이 없을 경우 attributeType
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute(MemberInfo, Type, Boolean)
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::MemberInfo ^ element, Type ^ attributeType, bool inherit);
public static Attribute GetCustomAttribute (this System.Reflection.MemberInfo element, Type attributeType, bool inherit);
public static Attribute? GetCustomAttribute (this System.Reflection.MemberInfo element, Type attributeType, bool inherit);
static member GetCustomAttribute : System.Reflection.MemberInfo * Type * bool -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As MemberInfo, attributeType As Type, inherit As Boolean) As Attribute
매개 변수
- element
- MemberInfo
검사할 멤버입니다.The member to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
- inherit
- Boolean
element
의 상위 요소를 검사하려면 true
이고, 그렇지 않으면 false
입니다.true
to inspect the ancestors of element
; otherwise, false
.
반환
이런 특성이 없을 경우 attributeType
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute(ParameterInfo, Type, Boolean)
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는 컬렉션을 검색하거나 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
public:
[System::Runtime::CompilerServices::Extension]
static Attribute ^ GetCustomAttribute(System::Reflection::ParameterInfo ^ element, Type ^ attributeType, bool inherit);
public static Attribute GetCustomAttribute (this System.Reflection.ParameterInfo element, Type attributeType, bool inherit);
public static Attribute? GetCustomAttribute (this System.Reflection.ParameterInfo element, Type attributeType, bool inherit);
static member GetCustomAttribute : System.Reflection.ParameterInfo * Type * bool -> Attribute
<Extension()>
Public Function GetCustomAttribute (element As ParameterInfo, attributeType As Type, inherit As Boolean) As Attribute
매개 변수
- element
- ParameterInfo
검사할 매개 변수입니다.The parameter to inspect.
- attributeType
- Type
검색할 특성의 형식입니다.The type of attribute to search for.
- inherit
- Boolean
element
의 상위 요소를 검사하려면 true
이고, 그렇지 않으면 false
입니다.true
to inspect the ancestors of element
; otherwise, false
.
반환
attributeType
과 일치하는 사용자 지정 특성이거나, 이러한 특성이 없으면 null
입니다.A custom attribute matching attributeType
, or null
if no such attribute is found.
예외
element
또는 attributeType
가 null
인 경우element
or attributeType
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(ParameterInfo, Boolean)
지정된 형식의 사용자 지정 특성이 지정된 매개 변수에 적용되는 컬렉션을 검색하거나 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::ParameterInfo ^ element, bool inherit);
public static T GetCustomAttribute<T> (this System.Reflection.ParameterInfo element, bool inherit) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.ParameterInfo element, bool inherit) where T : Attribute;
static member GetCustomAttribute : System.Reflection.ParameterInfo * bool -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As ParameterInfo, inherit As Boolean) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- ParameterInfo
검사할 매개 변수입니다.The parameter to inspect.
- inherit
- Boolean
element
의 상위 요소를 검사하려면 true
이고, 그렇지 않으면 false
입니다.true
to inspect the ancestors of element
; otherwise, false
.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(MemberInfo, Boolean)
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::MemberInfo ^ element, bool inherit);
public static T GetCustomAttribute<T> (this System.Reflection.MemberInfo element, bool inherit) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.MemberInfo element, bool inherit) where T : Attribute;
static member GetCustomAttribute : System.Reflection.MemberInfo * bool -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As MemberInfo, inherit As Boolean) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- MemberInfo
검사할 멤버입니다.The member to inspect.
- inherit
- Boolean
element
의 상위 요소를 검사하려면 true
이고, 그렇지 않으면 false
입니다.true
to inspect the ancestors of element
; otherwise, false
.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(ParameterInfo)
지정된 매개 변수에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified parameter.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::ParameterInfo ^ element);
public static T GetCustomAttribute<T> (this System.Reflection.ParameterInfo element) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.ParameterInfo element) where T : Attribute;
static member GetCustomAttribute : System.Reflection.ParameterInfo -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As ParameterInfo) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- ParameterInfo
검사할 매개 변수입니다.The parameter to inspect.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(Module)
지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified module.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::Module ^ element);
public static T GetCustomAttribute<T> (this System.Reflection.Module element) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.Module element) where T : Attribute;
static member GetCustomAttribute : System.Reflection.Module -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As Module) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- Module
검사할 모듈입니다.The module to inspect.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(MemberInfo)
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::MemberInfo ^ element);
public static T GetCustomAttribute<T> (this System.Reflection.MemberInfo element) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.MemberInfo element) where T : Attribute;
static member GetCustomAttribute : System.Reflection.MemberInfo -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As MemberInfo) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- MemberInfo
검사할 멤버입니다.The member to inspect.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
element
가 생성자, 메서드, 속성, 이벤트, 형식 또는 필드가 아닌 경우element
is not a constructor, method, property, event, type, or field.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
사용자 지정 특성 형식을 로드할 수 없는 경우A custom attribute type cannot be loaded.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.
적용 대상
GetCustomAttribute<T>(Assembly)
지정된 어셈블리에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified assembly.
public:
generic <typename T>
where T : Attribute[System::Runtime::CompilerServices::Extension]
static T GetCustomAttribute(System::Reflection::Assembly ^ element);
public static T GetCustomAttribute<T> (this System.Reflection.Assembly element) where T : Attribute;
public static T? GetCustomAttribute<T> (this System.Reflection.Assembly element) where T : Attribute;
static member GetCustomAttribute : System.Reflection.Assembly -> 'T (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttribute(Of T As Attribute) (element As Assembly) As T
형식 매개 변수
- T
검색할 특성의 형식입니다.The type of attribute to search for.
매개 변수
- element
- Assembly
조사할 어셈블리입니다.The assembly to inspect.
반환
- T
이런 특성이 없을 경우 T
또는 null
과 일치하는 사용자 지정 특성입니다.A custom attribute that matches T
, or null
if no such attribute is found.
예외
element
이(가) null
인 경우element
is null
.
요청된 특성이 둘 이상 발견된 경우More than one of the requested attributes was found.
설명
값을 GetCustomAttributes 두 개 이상 반환 하거나 throw 될 것으로 간주 되는 경우 확장 메서드를 사용 AmbiguousMatchException 합니다.Use the GetCustomAttributes extension method if you expect more than one value to be returned, or AmbiguousMatchException will be thrown.