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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈