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. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om