ConventionBuilder.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) |
Retrieves the list of custom attributes applied to the specified member of the specified type. |
GetCustomAttributes(Type, ParameterInfo) |
Retrieves the list of custom attributes applied to the specified parameter of the specified type. |
GetCustomAttributes(Type, MemberInfo)
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Retrieves the list of custom attributes applied to the specified member of the specified type.
public:
override System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::MemberInfo ^ member);
public override System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (Type reflectedType, System.Reflection.MemberInfo member);
override this.GetCustomAttributes : Type * System.Reflection.MemberInfo -> seq<Attribute>
Public Overrides 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 custom attributes.
Applies to
GetCustomAttributes(Type, ParameterInfo)
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Retrieves the list of custom attributes applied to the specified parameter of the specified type.
public:
override System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(Type ^ reflectedType, System::Reflection::ParameterInfo ^ parameter);
public override System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (Type reflectedType, System.Reflection.ParameterInfo parameter);
override this.GetCustomAttributes : Type * System.Reflection.ParameterInfo -> seq<Attribute>
Public Overrides 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 custom attributes.