AttributedModelProvider.GetCustomAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET