संपादित करें

इसके माध्यम से साझा किया गया


ICustomMarshaler Interface

Definition

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.

Applies to