Поделиться через


RegistrationBuilder.GetCustomAttributes Метод

Определение

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

Перегрузки

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

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

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

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

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

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

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

protected:
 override System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected override System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<object> declaredAttributes);
override this.GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
Protected Overrides Function GetCustomAttributes (member As MemberInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)

Параметры

member
MemberInfo

Член, настраиваемые атрибуты которого будут возвращены.

declaredAttributes
IEnumerable<Object>

Коллекция атрибутов члена в текущем контексте.

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

Коллекция, представляющая настраиваемые атрибуты заданного члена в данном контексте отражения.

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

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

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

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

protected:
 override System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ parameter, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected override System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.ParameterInfo parameter, System.Collections.Generic.IEnumerable<object> declaredAttributes);
override this.GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
Protected Overrides Function GetCustomAttributes (parameter As ParameterInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)

Параметры

parameter
ParameterInfo

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

declaredAttributes
IEnumerable<Object>

Коллекция атрибутов параметра в текущем контексте.

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

Коллекция, представляющая настраиваемые атрибуты заданного параметра в данном контексте отражения.

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