AttributedModelProvider.GetCustomAttributes Метод

Определение

Перегрузки

GetCustomAttributes(Type, MemberInfo)

Предоставляет список атрибутов, примененных к указанному элементу указанного типа.

GetCustomAttributes(Type, ParameterInfo)

Предоставляет список атрибутов, примененных к указанному параметру указанного типа.

GetCustomAttributes(Type, MemberInfo)

Исходный код:
AttributedModelProvider.cs
Исходный код:
AttributedModelProvider.cs
Исходный код:
AttributedModelProvider.cs

Предоставляет список атрибутов, примененных к указанному элементу указанного типа.

public:
 abstract System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::MemberInfo ^ member);
public abstract System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (Type reflectedType, System.Reflection.MemberInfo member);
abstract member GetCustomAttributes : Type * System.Reflection.MemberInfo -> seq<Attribute>
Public MustOverride Function GetCustomAttributes (reflectedType As Type, member As MemberInfo) As IEnumerable(Of Attribute)

Параметры

reflectedType
Type

Тип.

member
MemberInfo

Проверяемый член.

Возвращаемое значение

Коллекция атрибутов, примененных к указанному члену.

Применяется к

GetCustomAttributes(Type, ParameterInfo)

Исходный код:
AttributedModelProvider.cs
Исходный код:
AttributedModelProvider.cs
Исходный код:
AttributedModelProvider.cs

Предоставляет список атрибутов, примененных к указанному параметру указанного типа.

public:
 abstract System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::ParameterInfo ^ parameter);
public abstract System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (Type reflectedType, System.Reflection.ParameterInfo parameter);
abstract member GetCustomAttributes : Type * System.Reflection.ParameterInfo -> seq<Attribute>
Public MustOverride Function GetCustomAttributes (reflectedType As Type, parameter As ParameterInfo) As IEnumerable(Of Attribute)

Параметры

reflectedType
Type

Тип.

parameter
ParameterInfo

Проверяемый параметр.

Возвращаемое значение

Коллекция атрибутов, примененных к указанному параметру.

Применяется к