語言

ConventionBuilder.GetCustomAttributes 方法

定義

多載

名稱 Description
GetCustomAttributes(Type, MemberInfo)

擷取套用於指定成員的自訂屬性清單。

GetCustomAttributes(Type, ParameterInfo)

擷取套用於指定參數且指定型別的自訂屬性清單。

GetCustomAttributes(Type, MemberInfo)

來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs

擷取套用於指定成員的自訂屬性清單。

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)

參數

reflectedType
Type

「類型」。

member
MemberInfo

要檢查的成員。

傳回

一組自訂屬性。

適用於

GetCustomAttributes(Type, ParameterInfo)

來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs
來源:
ConventionBuilder.cs

擷取套用於指定參數且指定型別的自訂屬性清單。

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)

參數

reflectedType
Type

「類型」。

parameter
ParameterInfo

要檢查的參數。

傳回

一組自訂屬性。

適用於