ICustomMarshaler Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides custom wrappers for handling method calls.
public interface class ICustomMarshaler
public interface ICustomMarshaler
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomMarshaler
type ICustomMarshaler = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ICustomMarshaler = interface
Public Interface ICustomMarshaler
- Derived
- Attributes
Remarks
For more information about this API, see Supplemental API remarks for ICustomMarshaler.
Methods
CleanUpManagedData(Object) |
Performs necessary cleanup of the managed data when it is no longer needed. |
CleanUpNativeData(IntPtr) |
Performs necessary cleanup of the unmanaged data when it is no longer needed. |
GetNativeDataSize() |
Returns the size of the native data to be marshaled. |
MarshalManagedToNative(Object) |
Converts the managed data to unmanaged data. |
MarshalNativeToManaged(IntPtr) |
Converts the unmanaged data to managed data. |