StandardOleMarshalObject StandardOleMarshalObject StandardOleMarshalObject StandardOleMarshalObject Class


用标准 OLE STA 封送拆收器替换标准公共语言运行时 (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")]
public class StandardOleMarshalObject : MarshalByRefObject
type StandardOleMarshalObject = class
    inherit MarshalByRefObject
Public Class StandardOleMarshalObject
Inherits MarshalByRefObject
System.MonoLimitationAttribute ComVisibleAttribute


StandardOleMarshalObject类可防止从输入 UI 线程以外的线程由 OLE 进行转换为托管对象的调用。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() StandardOleMarshalObject() StandardOleMarshalObject()

初始化 StandardOleMarshalObject 类的新实例。Initializes a new instance of the StandardOleMarshalObject class.


CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)