System.Runtime.InteropServices.DispatchWrapper Class

Wraps objects the marshaler should marshal as a VT_DISPATCH.

See Also: DispatchWrapper Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DispatchWrapper

Remarks

Use to wrap objects the marshaler should marshal as a VT_DISPATCH. This wrapper will force objects to be marshaled out as VT_DISPATCH. If the object does not support IDispatch then an exception will be thrown.

code reference: System.Runtime.InteropServices.DispatchWrapper#1

For more information on VT_DISPATCH, please see the existing documentation for VARENUM::VT_DISPATCH in the MSDN library.

Requirements

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