DispatchProxy 類別

定義

提供具現化 Proxy 物件及處理其方法分派的機制。Provides a mechanism for instantiating proxy objects and handling their method dispatch.

public ref class DispatchProxy abstract
public abstract class DispatchProxy
type DispatchProxy = class
Public MustInherit Class DispatchProxy
繼承
DispatchProxy

建構函式

DispatchProxy()

方法

Create<T,TProxy>()

建立衍生自類別 TProxy 的物件執行個體並實作介面 TCreates an object instance that derives from class TProxy and implements interface T.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Invoke(MethodInfo, Object[])

當呼叫所產生之 Proxy 型別上的任何方法時,會叫用此方法以分派控制。Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於