Share via


AttributedModelProvider.GetCustomAttributes Method

Definition

Overloads

GetCustomAttributes(Type, MemberInfo)

Provides the list of attributes applied to the specified member of the specified type.

GetCustomAttributes(Type, ParameterInfo)

Provides the list of attributes applied to the specified parameter of the specified type.

GetCustomAttributes(Type, MemberInfo)

Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs

Provides the list of attributes applied to the specified member of the specified type.

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)

Parameters

reflectedType
Type

The type.

member
MemberInfo

The member to inspect.

Returns

A collection of the attributes applied to the specified member.

Applies to

GetCustomAttributes(Type, ParameterInfo)

Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs
Source:
AttributedModelProvider.cs

Provides the list of attributes applied to the specified parameter of the specified type.

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)

Parameters

reflectedType
Type

The type.

parameter
ParameterInfo

The parameter to inspect.

Returns

A collection of the attributes applied to the specified parameter.

Applies to