ICustomMarshaler 接口 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于处理方法调用的自定义包装器。
public interface class ICustomMarshalerpublic interface ICustomMarshaler[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomMarshalertype ICustomMarshaler = interface[<System.Runtime.InteropServices.ComVisible(true)>]
type ICustomMarshaler = interfacePublic Interface ICustomMarshaler- 派生
- 属性
注解
有关此 API 的详细信息,请参阅 ICustomMarshaler 的补充 API 备注。
方法
| CleanUpManagedData(Object) | 不再需要时执行必要的托管数据的清除。 | 
| CleanUpNativeData(IntPtr) | 不再需要时执行必要的非托管数据的清除。 | 
| GetNativeDataSize() | 返回要封送的本机数据的大小。 | 
| MarshalManagedToNative(Object) | 将托管数据转换为非托管数据。 | 
| MarshalNativeToManaged(IntPtr) | 将非托管数据转换为托管数据。 |