ICustomMarshaler Interfejs

Definicja

Udostępnia niestandardowe otoki do obsługi wywołań metod.

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
Pochodne
Atrybuty

Uwagi

Aby uzyskać więcej informacji na temat tego interfejsu API, zobacz Dodatkowe uwagi interfejsu API dla ICustomMarshaler.

Metody

CleanUpManagedData(Object)

Wykonuje niezbędne czyszczenie zarządzanych danych, gdy nie są już potrzebne.

CleanUpNativeData(IntPtr)

Wykonuje niezbędne czyszczenie niezarządzanych danych, gdy nie jest już potrzebne.

GetNativeDataSize()

Zwraca rozmiar danych natywnych do marshalingu.

MarshalManagedToNative(Object)

Konwertuje dane zarządzane na niezarządzane dane.

MarshalNativeToManaged(IntPtr)

Konwertuje niezarządzane dane na dane zarządzane.

Dotyczy