CustomAttributeExtensions.GetCustomAttributes Yöntem

Tanım

Belirtilen bir öğeye uygulanan özel öznitelikler koleksiyonunu alır.

Aşırı Yüklemeler

GetCustomAttributes(ParameterInfo, Type, Boolean)

Belirtilen bir parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

GetCustomAttributes(MemberInfo, Type, Boolean)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin üstlerini inceler.

GetCustomAttributes(ParameterInfo, Type)

Belirtilen parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(ParameterInfo, Boolean)

Belirtilen bir parametreye uygulanan özel öznitelikler koleksiyonunu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

GetCustomAttributes(Module, Type)

Belirtilen modüle uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(MemberInfo, Type)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(MemberInfo, Boolean)

Belirtilen üyeye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin atalarını inceler.

GetCustomAttributes(Assembly, Type)

Belirtilen bir derlemeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(ParameterInfo)

Belirtilen parametreye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(Module)

Belirtilen modüle uygulanan özel öznitelikler koleksiyonunu alır.

GetCustomAttributes(MemberInfo)

Belirtilen üyeye uygulanan özel öznitelikler koleksiyonunu alır.

GetCustomAttributes(Assembly)

Belirtilen derlemeye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes<T>(ParameterInfo, Boolean)

Belirtilen bir parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

GetCustomAttributes<T>(MemberInfo, Boolean)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin üstlerini inceler.

GetCustomAttributes<T>(ParameterInfo)

Belirtilen parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes<T>(MemberInfo)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes<T>(Assembly)

Belirtilen bir derlemeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes<T>(Module)

Belirtilen modüle uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(ParameterInfo, Type, Boolean)

Belirtilen bir parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

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)

Parametreler

element
ParameterInfo

İncelenecek parametre.

attributeType
Type

Aranacak öznitelik türü.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(MemberInfo, Type, Boolean)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin üstlerini inceler.

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)

Parametreler

element
MemberInfo

İncelenecek üye.

attributeType
Type

Aranacak öznitelik türü.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(ParameterInfo, Type)

Belirtilen parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
ParameterInfo

İncelenecek parametre.

attributeType
Type

Aranacak öznitelik türü.

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(ParameterInfo, Boolean)

Belirtilen bir parametreye uygulanan özel öznitelikler koleksiyonunu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

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)

Parametreler

element
ParameterInfo

İncelenecek parametre.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<Attribute>

uygulamasına uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(Module, Type)

Belirtilen modüle uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
Module

İncelenir modül.

attributeType
Type

Aranacak öznitelik türü.

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

Şunlara uygulanır

GetCustomAttributes(MemberInfo, Type)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
MemberInfo

İncelenecek üye.

attributeType
Type

Aranacak öznitelik türü.

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(MemberInfo, Boolean)

Belirtilen üyeye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin atalarını inceler.

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)

Parametreler

element
MemberInfo

İncelenecek üye.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<Attribute>

Belirtilen ölçütlerle eşleşen uygulanan özel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(Assembly, Type)

Belirtilen bir derlemeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
Assembly

İncelemek için montaj.

attributeType
Type

Aranacak öznitelik türü.

Döndürülenler

IEnumerable<Attribute>

uygulanan ve ile eşleşen attributeTypeözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element veya attributeType şeklindedir null.

attributeType ' den Attributetüretilmemiştir.

Şunlara uygulanır

GetCustomAttributes(ParameterInfo)

Belirtilen parametreye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
ParameterInfo

İncelenecek parametre.

Döndürülenler

IEnumerable<Attribute>

uygulamasına uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(Module)

Belirtilen modüle uygulanan özel öznitelikler koleksiyonunu alır.

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)

Parametreler

element
Module

İncelenir modül.

Döndürülenler

IEnumerable<Attribute>

uygulamasına uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

Şunlara uygulanır

GetCustomAttributes(MemberInfo)

Belirtilen üyeye uygulanan özel öznitelikler koleksiyonunu alır.

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)

Parametreler

element
MemberInfo

İncelenecek üye.

Döndürülenler

IEnumerable<Attribute>

uygulamasına uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes(Assembly)

Belirtilen derlemeye uygulanan özel özniteliklerden oluşan bir koleksiyonu alır.

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)

Parametreler

element
Assembly

İncelemek için montaj.

Döndürülenler

IEnumerable<Attribute>

uygulamasına uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

Şunlara uygulanır

GetCustomAttributes<T>(ParameterInfo, Boolean)

Belirtilen bir parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu parametrenin atalarını inceler.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
ParameterInfo

İncelenecek parametre.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes<T>(MemberInfo, Boolean)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin üstlerini inceler.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
MemberInfo

İncelenecek üye.

inherit
Boolean

trueöğesinin atalarını elementincelemek için ; aksi takdirde . false

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes<T>(ParameterInfo)

Belirtilen parametreye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
ParameterInfo

İncelenecek parametre.

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes<T>(MemberInfo)

Belirtilen bir üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
MemberInfo

İncelenecek üye.

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

element oluşturucu, yöntem, özellik, olay, tür veya alan değildir.

Özel öznitelik türü yüklenemiyor.

Şunlara uygulanır

GetCustomAttributes<T>(Assembly)

Belirtilen bir derlemeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
Assembly

İncelemek için montaj.

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

Şunlara uygulanır

GetCustomAttributes<T>(Module)

Belirtilen modüle uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

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ür Parametreleri

T

Aranacak öznitelik türü.

Parametreler

element
Module

İncelenir modül.

Döndürülenler

IEnumerable<T>

uygulanan ve ile eşleşen Tözel özniteliklerin element koleksiyonu veya böyle bir öznitelik yoksa boş bir koleksiyon.

Özel durumlar

element, null değeridir.

Şunlara uygulanır