public interface ICustomMarshaler
|
In addition to implementing the ICustomMarshaler interface, custom marshalers must implement a static method called GetInstance that accepts a String as a parameter and has a return type of ICustomMarshaler. This static method is called by the common language runtime's COM interop layer to instantiate an instance of the custom marshaler. The String passed to GetInstance is a cookie that the method can use to customize the returned custom marshaler.
CleanUpManagedData | |
CleanUpNativeData | 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 | |
MarshalNativeToManaged |
void CleanUpManagedData( |
ManagedObj
void CleanUpNativeData( |
pNativeData
int GetNativeDataSize(); |
ManagedObj
pNativeData