System.Runtime.InteropServices.StandardOleMarshalObject Class

Replaces the standard common language runtime (CLR) free-threaded marshaler with the standard OLE STA marshaler.

See Also: StandardOleMarshalObject Members

Syntax

[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

Remarks

The System.Runtime.InteropServices.StandardOleMarshalObject class prevents calls made into a hosting object by OLE from entering threads other than the UI thread.

You should derive your class from the System.Runtime.InteropServices.StandardOleMarshalObject class to gain this functionality.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0