Editare

Partajați prin


CustomReflectionContext.GetCustomAttributes Method

Definition

When overridden in a derived class, provides a modified collection of custom attributes for the specified object, as represented in this reflection context.

Overloads

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

When overridden in a derived class, provides a list of custom attributes for the specified member, as represented in this reflection context.

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

When overridden in a derived class, provides a list of custom attributes for the specified parameter, as represented in this reflection context.

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs

When overridden in a derived class, provides a list of custom attributes for the specified member, as represented in this reflection context.

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

Parameters

member
MemberInfo

The member whose custom attributes will be returned.

declaredAttributes
IEnumerable<Object>

A collection of the member's attributes in its current context.

Returns

A collection that represents the custom attributes of the specified member in this reflection context.

Applies to

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs
Source:
CustomReflectionContext.cs

When overridden in a derived class, provides a list of custom attributes for the specified parameter, as represented in this reflection context.

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

Parameters

parameter
ParameterInfo

The parameter whose custom attributes will be returned.

declaredAttributes
IEnumerable<Object>

A collection of the parameter's attributes in its current context.

Returns

A collection that represents the custom attributes of the specified parameter in this reflection context.

Applies to