RuntimeReflectionExtensions RuntimeReflectionExtensions RuntimeReflectionExtensions RuntimeReflectionExtensions Class

定義

提供用來在執行階段擷取型別資訊的方法。Provides methods that retrieve information about types at run time.

public ref class RuntimeReflectionExtensions abstract sealed
public static class RuntimeReflectionExtensions
type RuntimeReflectionExtensions = class
Public Module RuntimeReflectionExtensions
繼承
RuntimeReflectionExtensionsRuntimeReflectionExtensionsRuntimeReflectionExtensionsRuntimeReflectionExtensions

方法

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

GetRuntimeBaseDefinition(MethodInfo) GetRuntimeBaseDefinition(MethodInfo) GetRuntimeBaseDefinition(MethodInfo) GetRuntimeBaseDefinition(MethodInfo)

擷取物件,表示直接或間接基底類別上的指定方法 (在這個類別上首次宣告這個方法)。Retrieves an object that represents the specified method on the direct or indirect base class where the method was first declared.

GetRuntimeEvent(Type, String) GetRuntimeEvent(Type, String) GetRuntimeEvent(Type, String) GetRuntimeEvent(Type, String)

擷取表示指定之事件的物件。Retrieves an object that represents the specified event.

GetRuntimeEvents(Type) GetRuntimeEvents(Type) GetRuntimeEvents(Type) GetRuntimeEvents(Type)

擷取集合,表示指定的型別所定義的所有事件。Retrieves a collection that represents all the events defined on a specified type.

GetRuntimeField(Type, String) GetRuntimeField(Type, String) GetRuntimeField(Type, String) GetRuntimeField(Type, String)

擷取表示指定之欄位的物件。Retrieves an object that represents a specified field.

GetRuntimeFields(Type) GetRuntimeFields(Type) GetRuntimeFields(Type) GetRuntimeFields(Type)

擷取集合,表示指定的型別所定義的所有欄位。Retrieves a collection that represents all the fields defined on a specified type.

GetRuntimeInterfaceMap(TypeInfo, Type) GetRuntimeInterfaceMap(TypeInfo, Type) GetRuntimeInterfaceMap(TypeInfo, Type) GetRuntimeInterfaceMap(TypeInfo, Type)

傳回指定型別和指定介面的介面對應。Returns an interface mapping for the specified type and the specified interface.

GetRuntimeMethod(Type, String, Type[]) GetRuntimeMethod(Type, String, Type[]) GetRuntimeMethod(Type, String, Type[]) GetRuntimeMethod(Type, String, Type[])

擷取表示指定之方法的物件。Retrieves an object that represents a specified method.

GetRuntimeMethods(Type) GetRuntimeMethods(Type) GetRuntimeMethods(Type) GetRuntimeMethods(Type)

擷取集合,表示指定的型別所定義的所有方法。Retrieves a collection that represents all methods defined on a specified type.

GetRuntimeProperties(Type) GetRuntimeProperties(Type) GetRuntimeProperties(Type) GetRuntimeProperties(Type)

擷取集合,表示指定的型別所定義的所有屬性。Retrieves a collection that represents all the properties defined on a specified type.

GetRuntimeProperty(Type, String) GetRuntimeProperty(Type, String) GetRuntimeProperty(Type, String) GetRuntimeProperty(Type, String)

擷取表示指定之屬性的物件。Retrieves an object that represents a specified property.

適用於