RegistrationBuilder.GetCustomAttributes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定对象提供自定义属性的修改集合,如此反射上下文中表示的那样。
重载
GetCustomAttributes(MemberInfo, IEnumerable<Object>) |
为指定的成员提供自定义属性的列表,如此反射上下文中表示的那样。 |
GetCustomAttributes(ParameterInfo, IEnumerable<Object>) |
为指定的参数提供自定义属性的列表,如此反射上下文中表示的那样。 |
GetCustomAttributes(MemberInfo, IEnumerable<Object>)
- Source:
- RegistrationBuilder.cs
- Source:
- RegistrationBuilder.cs
- Source:
- RegistrationBuilder.cs
为指定的成员提供自定义属性的列表,如此反射上下文中表示的那样。
protected:
override System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected override System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<object> declaredAttributes);
override this.GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
Protected Overrides Function GetCustomAttributes (member As MemberInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
参数
- member
- MemberInfo
将返回其自定义特性的成员。
- declaredAttributes
- IEnumerable<Object>
在其当前上下文中的成员特性的集合。
返回
表示此反射上下文中指定的成员的自定义特性的集合。
适用于
GetCustomAttributes(ParameterInfo, IEnumerable<Object>)
- Source:
- RegistrationBuilder.cs
- Source:
- RegistrationBuilder.cs
- Source:
- RegistrationBuilder.cs
为指定的参数提供自定义属性的列表,如此反射上下文中表示的那样。
protected:
override System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ parameter, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected override System.Collections.Generic.IEnumerable<object> GetCustomAttributes (System.Reflection.ParameterInfo parameter, System.Collections.Generic.IEnumerable<object> declaredAttributes);
override this.GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
Protected Overrides Function GetCustomAttributes (parameter As ParameterInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
参数
- parameter
- ParameterInfo
其自定义属性将返回的参数。
- declaredAttributes
- IEnumerable<Object>
在其当前上下文中的参数特性的集合。
返回
表示此反射上下文中指定的参数的自定义特性的集合。