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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기