Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Custom Marshaling

A custom marshaler enables you to precisely control the way in which a managed type is exposed to COM or an unmanaged type is exposed to the .NET Framework. You use a custom marshaler instead of the interop marshaler, which the common language runtime provides by default.

Custom Marshaling Overview

Describes the custom marshalers at a high level.

Defining the Marshaling Type

Describes how to prepare the interfaces involved in setting up a custom marshaler.

Implementing the ICustomMarshaler Interface

Describes the options in preparing a custom marshaler.

Using a Substitute Marshaler

Describes how to use the MarshalAsAttribute attribute to insert a custom marshaler.

Interop Marshaling

Describes marshaling for COM interop and platform invoke.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.