Replaces the standard common language runtime (CLR) free-threaded marshaler with the standard OLE STA marshaler.
See Also: StandardOleMarshalObject Members
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.