ConventionBuilder.GetCustomAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| GetCustomAttributes(Type, MemberInfo) |
擷取套用至指定類型之指定成員的自訂屬性清單。 |
| GetCustomAttributes(Type, ParameterInfo) |
擷取套用至指定類型之指定參數的自訂屬性清單。 |
GetCustomAttributes(Type, MemberInfo)
擷取套用至指定類型之指定成員的自訂屬性清單。
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)
擷取套用至指定類型之指定參數的自訂屬性清單。
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
要檢查的參數。
傳回
自訂屬性的集合。