This documentation is archived and is not being maintained.

MarshalAsAttribute.MarshalCookie Field

Provides additional information to a custom marshaler.

[Visual Basic]
Public MarshalCookie As String
public string MarshalCookie;
public: String* MarshalCookie;
public var MarshalCookie : String;


This field is optional when using a custom marshaler.

You can set this field to a string that supplies additional information to a custom marshaler. For example, the same marshaler can be used to provide a number of wrappers, where the cookie is used to indicate the specific wrapper.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

MarshalAsAttribute Class | MarshalAsAttribute Members | System.Runtime.InteropServices Namespace