CustomAttributeExtensions.GetCustomAttributes 메서드

정의

지정된 요소에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

오버로드

Name Description
GetCustomAttributes(ParameterInfo, Type, Boolean)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.

GetCustomAttributes(MemberInfo, Type, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(ParameterInfo, Type)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(ParameterInfo, Boolean)

지정된 매개 변수에 적용되는 사용자 지정 특성의 컬렉션을 검색하고 필요에 따라 해당 매개 변수의 상위 항목을 검사합니다.

GetCustomAttributes(Module, Type)

지정된 모듈에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo, Type)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo, Boolean)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(Assembly, Type)

지정된 어셈블리에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(ParameterInfo)

지정된 매개 변수에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

GetCustomAttributes(Module)

지정된 모듈에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

GetCustomAttributes(Assembly)

지정된 어셈블리에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

GetCustomAttributes<T>(ParameterInfo, Boolean)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.

GetCustomAttributes<T>(MemberInfo, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes<T>(ParameterInfo)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes<T>(MemberInfo)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes<T>(Assembly)

지정된 어셈블리에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes<T>(Module)

지정된 모듈에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(ParameterInfo, Type, Boolean)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.

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

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

attributeType
Type

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

inherit
Boolean

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(MemberInfo, Type, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

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

매개 변수

element
MemberInfo

검사할 멤버입니다.

attributeType
Type

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

inherit
Boolean

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(ParameterInfo, Type)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.ParameterInfo element, Type attributeType);
static member GetCustomAttributes : System.Reflection.ParameterInfo * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo, attributeType As Type) As IEnumerable(Of Attribute)

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

attributeType
Type

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(ParameterInfo, Boolean)

지정된 매개 변수에 적용되는 사용자 지정 특성의 컬렉션을 검색하고 필요에 따라 해당 매개 변수의 상위 항목을 검사합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.ParameterInfo element, bool inherit);
static member GetCustomAttributes : System.Reflection.ParameterInfo * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo, inherit As Boolean) As IEnumerable(Of Attribute)

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

inherit
Boolean

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

반품

적용 element된 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(Module, Type)

지정된 모듈에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Module ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.Module element, Type attributeType);
static member GetCustomAttributes : System.Reflection.Module * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Module, attributeType As Type) As IEnumerable(Of Attribute)

매개 변수

element
Module

검사할 모듈입니다.

attributeType
Type

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

적용 대상

GetCustomAttributes(MemberInfo, Type)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.MemberInfo element, Type attributeType);
static member GetCustomAttributes : System.Reflection.MemberInfo * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo, attributeType As Type) As IEnumerable(Of Attribute)

매개 변수

element
MemberInfo

검사할 멤버입니다.

attributeType
Type

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(MemberInfo, Boolean)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.MemberInfo element, bool inherit);
static member GetCustomAttributes : System.Reflection.MemberInfo * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo, inherit As Boolean) As IEnumerable(Of Attribute)

매개 변수

element
MemberInfo

검사할 멤버입니다.

inherit
Boolean

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

반품

지정된 조건과 일치하는 사용자 지정 특성에 element 적용되는 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(Assembly, Type)

지정된 어셈블리에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Assembly ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.Assembly element, Type attributeType);
static member GetCustomAttributes : System.Reflection.Assembly * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Assembly, attributeType As Type) As IEnumerable(Of Attribute)

매개 변수

element
Assembly

검사할 어셈블리입니다.

attributeType
Type

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

반품

적용 element 되고 일치하는 attributeType사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

element 또는 attributeType .입니다 null.

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

적용 대상

GetCustomAttributes(ParameterInfo)

지정된 매개 변수에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.ParameterInfo element);
static member GetCustomAttributes : System.Reflection.ParameterInfo -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo) As IEnumerable(Of Attribute)

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

반품

적용 element된 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(Module)

지정된 모듈에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Module ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.Module element);
static member GetCustomAttributes : System.Reflection.Module -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Module) As IEnumerable(Of Attribute)

매개 변수

element
Module

검사할 모듈입니다.

반품

적용 element된 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

적용 대상

GetCustomAttributes(MemberInfo)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.MemberInfo element);
static member GetCustomAttributes : System.Reflection.MemberInfo -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo) As IEnumerable(Of Attribute)

매개 변수

element
MemberInfo

검사할 멤버입니다.

반품

적용 element된 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes(Assembly)

지정된 어셈블리에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Assembly ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes(this System.Reflection.Assembly element);
static member GetCustomAttributes : System.Reflection.Assembly -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Assembly) As IEnumerable(Of Attribute)

매개 변수

element
Assembly

검사할 어셈블리입니다.

반품

적용 element된 사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

적용 대상

GetCustomAttributes<T>(ParameterInfo, Boolean)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 선택적으로 해당 매개 변수의 상위 항목을 검사합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.ParameterInfo element, bool inherit) where T : Attribute;
static member GetCustomAttributes : System.Reflection.ParameterInfo * bool -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As ParameterInfo, inherit As Boolean) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

inherit
Boolean

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

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes<T>(MemberInfo, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.MemberInfo element, bool inherit) where T : Attribute;
static member GetCustomAttributes : System.Reflection.MemberInfo * bool -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As MemberInfo, inherit As Boolean) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
MemberInfo

검사할 멤버입니다.

inherit
Boolean

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

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes<T>(ParameterInfo)

지정된 매개 변수에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.ParameterInfo element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.ParameterInfo -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As ParameterInfo) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
ParameterInfo

검사할 매개 변수입니다.

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes<T>(MemberInfo)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.MemberInfo element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.MemberInfo -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As MemberInfo) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
MemberInfo

검사할 멤버입니다.

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

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

사용자 지정 특성 형식을 로드할 수 없습니다.

적용 대상

GetCustomAttributes<T>(Assembly)

지정된 어셈블리에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::Assembly ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.Assembly element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.Assembly -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As Assembly) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
Assembly

검사할 어셈블리입니다.

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

적용 대상

GetCustomAttributes<T>(Module)

지정된 모듈에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::Module ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T>(this System.Reflection.Module element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.Module -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As Module) As IEnumerable(Of T)

형식 매개 변수

T

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

매개 변수

element
Module

검사할 모듈입니다.

반품

적용 element 되고 일치하는 T사용자 지정 특성의 컬렉션이거나, 이러한 특성이 없는 경우 빈 컬렉션입니다.

예외

elementnull입니다.

적용 대상