共用方式為


RegistrationBuilder 類別

定義

表示有相關聯慣例的反射內容,描述以 Managed Extensibility Framework (MEF) 屬性裝飾實體的規則。

public ref class RegistrationBuilder : System::Reflection::Context::CustomReflectionContext
public class RegistrationBuilder : System.Reflection.Context.CustomReflectionContext
type RegistrationBuilder = class
    inherit CustomReflectionContext
Public Class RegistrationBuilder
Inherits CustomReflectionContext
繼承

建構函式

RegistrationBuilder()

初始化 RegistrationBuilder 類別的新執行個體。

方法

AddProperties(Type)

在衍生類別中覆寫時,為指定的類型提供額外屬性集合,如這個反射內容所表示。

(繼承來源 CustomReflectionContext)
CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>)

建立表示要加入至型別之屬性的物件,該型別會搭配 AddProperties(Type) 方法使用。

(繼承來源 CustomReflectionContext)
CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>, IEnumerable<Attribute>, IEnumerable<Attribute>, IEnumerable<Attribute>)

建立表示要加入至型別之屬性 (Property) 的物件,該型別會搭配 AddProperties(Type) 方法使用且使用指定的自訂屬性 (Attribute)。

(繼承來源 CustomReflectionContext)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ForType(Type)

取得物件,表示適用於指定類型的規則。

ForType<T>()

取得強類型物件,表示適用於指定類型的規則。

ForTypesDerivedFrom(Type)

取得物件,表示適用於實作指定類型的所有類型,但不適用於指定類型的規則。

ForTypesDerivedFrom<T>()

取得強類型物件,表示適用於實作指定類型的所有類型,但不適用於指定類型的規則。

ForTypesMatching(Predicate<Type>)

取得物件,表示適用於所有符合指定述詞之類型的規則。

ForTypesMatching<T>(Predicate<Type>)

取得強類型物件,表示適用於所有符合指定述詞之類型的規則。

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

為指定的成員提供自訂屬性的清單,如這個反射內容所表示。

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

為指定的參數提供自訂屬性的清單,如這個反射內容所表示。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetTypeForObject(Object)

取得此反映內容中指定之物件的型別表示。

(繼承來源 ReflectionContext)
MapAssembly(Assembly)

取得此反射內容中由來自另一個反射內容的物件所代表的表示。

(繼承來源 CustomReflectionContext)
MapType(TypeInfo)

取得此反射內容中由來自另一個反射內容的物件所代表的型別表示。

(繼承來源 CustomReflectionContext)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於