CustomReflectionContext.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.
When overridden in a derived class, provides a modified collection of custom attributes for the specified object, as represented in this reflection context.
Overloads
GetCustomAttributes(MemberInfo, IEnumerable<Object>) |
When overridden in a derived class, provides a list of custom attributes for the specified member, as represented in this reflection context. |
GetCustomAttributes(ParameterInfo, IEnumerable<Object>) |
When overridden in a derived class, provides a list of custom attributes for the specified parameter, as represented in this reflection context. |
GetCustomAttributes(MemberInfo, IEnumerable<Object>)
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
When overridden in a derived class, provides a list of custom attributes for the specified member, as represented in this reflection context.
protected:
virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (member As MemberInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
Parameters
- member
- MemberInfo
The member whose custom attributes will be returned.
- declaredAttributes
- IEnumerable<Object>
A collection of the member's attributes in its current context.
Returns
A collection that represents the custom attributes of the specified member in this reflection context.
Applies to
GetCustomAttributes(ParameterInfo, IEnumerable<Object>)
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
- Source:
- CustomReflectionContext.cs
When overridden in a derived class, provides a list of custom attributes for the specified parameter, as represented in this reflection context.
protected:
virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ parameter, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.ParameterInfo parameter, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (parameter As ParameterInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
Parameters
- parameter
- ParameterInfo
The parameter whose custom attributes will be returned.
- declaredAttributes
- IEnumerable<Object>
A collection of the parameter's attributes in its current context.
Returns
A collection that represents the custom attributes of the specified parameter in this reflection context.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om