StandardOleMarshalObject 類別

定義

使用標準 OLE STA 封送處理器,取代標準 Common Language Runtime (CLR) 無限制執行緒封送處理器。Replaces the standard common language runtime (CLR) free-threaded marshaler with the standard OLE STA marshaler.

public ref class StandardOleMarshalObject : MarshalByRefObject
[System.MonoLimitation("The runtime does nothing special apart from what it already does with marshal-by-ref objects")]
[System.Runtime.InteropServices.ComVisible(true)]
public class StandardOleMarshalObject : MarshalByRefObject
type StandardOleMarshalObject = class
    inherit MarshalByRefObject
Public Class StandardOleMarshalObject
Inherits MarshalByRefObject
繼承
StandardOleMarshalObject
衍生
屬性
System.MonoLimitationAttribute ComVisibleAttribute

備註

StandardOleMarshalObject 類別可防止 OLE 呼叫裝載物件,以輸入 UI 執行緒以外的執行緒。The StandardOleMarshalObject class prevents calls made into a hosting object by OLE from entering threads other than the UI thread.

您應該從 StandardOleMarshalObject 類別衍生您的類別,以取得這種功能。You should derive your class from the StandardOleMarshalObject class to gain this functionality.

建構函式

StandardOleMarshalObject()

初始化 StandardOleMarshalObject 類別的新執行個體。Initializes a new instance of the StandardOleMarshalObject class.

方法

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetType()

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

(繼承來源 Object)
InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
MemberwiseClone()

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

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
ToString()

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

(繼承來源 Object)

適用於