CustomAttributeExtensions.GetCustomAttributes Yöntem

Tanım

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

Aşırı Yüklemeler

Name Description
GetCustomAttributes(ParameterInfo, Type, Boolean)

Belirtilen 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ürdeki özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin atalarını inceler.

GetCustomAttributes(ParameterInfo, Type)

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

GetCustomAttributes(ParameterInfo, Boolean)

Belirtilen parametreye uygulanan özel özniteliklerden oluşan bir koleksiyonu 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 üyeye uygulanan belirtilen türde özel özniteliklerden oluşan bir koleksiyonu alır.

GetCustomAttributes(MemberInfo, Boolean)

Belirli bir üyeye uygulanan özel öznitelikler koleksiyonunu 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 öznitelik koleksiyonunu alır.

GetCustomAttributes(Module)

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

GetCustomAttributes(MemberInfo)

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

GetCustomAttributes(Assembly)

Belirtilen bir derlemeye uygulanan özel öznitelik koleksiyonunu alır.

GetCustomAttributes<T>(ParameterInfo, Boolean)

Belirtilen 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ürdeki özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin atalarını inceler.

GetCustomAttributes<T>(ParameterInfo)

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

GetCustomAttributes<T>(MemberInfo)

Belirtilen ü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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen 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

denetlenecek parametre.

attributeType
Type

Aranacak özniteliğin türü.

inherit
Boolean

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

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen bir üyeye uygulanan belirtilen türdeki ö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, 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

Denetlenecek üye.

attributeType
Type

Aranacak özniteliğin türü.

inherit
Boolean

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

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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

denetlenecek parametre.

attributeType
Type

Aranacak özniteliğin türü.

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen parametreye uygulanan ö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, 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

denetlenecek parametre.

inherit
Boolean

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

Döndürülenler

öğesine uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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 özniteliğin türü.

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen ü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

Denetlenecek üye.

attributeType
Type

Aranacak özniteliğin türü.

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirli bir üyeye uygulanan özel öznitelikler koleksiyonunu 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

Denetlenecek üye.

inherit
Boolean

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

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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

denetlenecek derleme.

attributeType
Type

Aranacak özniteliğin türü.

Döndürülenler

uygulanan ve ile eşleşen elementözel özniteliklerin attributeType 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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen parametreye uygulanan özel öznitelik koleksiyonunu 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

denetlenecek parametre.

Döndürülenler

öğesine uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null'e eşittir.

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

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

Şunlara uygulanır

GetCustomAttributes(Module)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen modüle uygulanan özel öznitelik 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

öğesine uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null'e eşittir.

Şunlara uygulanır

GetCustomAttributes(MemberInfo)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen üyeye uygulanan özel öznitelik 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

Denetlenecek üye.

Döndürülenler

öğesine uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null'e eşittir.

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

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

Şunlara uygulanır

GetCustomAttributes(Assembly)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen bir derlemeye uygulanan özel öznitelik koleksiyonunu 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

denetlenecek derleme.

Döndürülenler

öğesine uygulanan elementözel özniteliklerin koleksiyonu veya böyle öznitelikler yoksa boş bir koleksiyon.

Özel durumlar

element, null'e eşittir.

Şunlara uygulanır

GetCustomAttributes<T>(ParameterInfo, Boolean)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen 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 özniteliğin türü.

Parametreler

element
ParameterInfo

denetlenecek parametre.

inherit
Boolean

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

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen bir üyeye uygulanan belirtilen türdeki özel özniteliklerden oluşan bir koleksiyonu alır ve isteğe bağlı olarak bu üyenin atalarını 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 özniteliğin türü.

Parametreler

element
MemberInfo

Denetlenecek üye.

inherit
Boolean

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

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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 özniteliğin türü.

Parametreler

element
ParameterInfo

denetlenecek parametre.

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

Belirtilen ü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 özniteliğin türü.

Parametreler

element
MemberInfo

Denetlenecek üye.

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

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)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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 özniteliğin türü.

Parametreler

element
Assembly

denetlenecek derleme.

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

Şunlara uygulanır

GetCustomAttributes<T>(Module)

Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs
Kaynak:
CustomAttributeExtensions.cs

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 özniteliğin türü.

Parametreler

element
Module

İncelenir modül.

Döndürülenler

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

Özel durumlar

element, null'e eşittir.

Şunlara uygulanır