MarshalAsAttribute Fields

MarshalAsAttribute Fields

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

The MarshalAsAttribute type exposes the following members.

  NameDescription
Public field ArraySubType Specifies the element type of the unmanaged UnmanagedType.LPArray or UnmanagedType.ByValArray.
Public field MarshalCookie Provides additional information to a custom marshaler.
Public field MarshalType Specifies the fully qualified name of a custom marshaler.
Public field MarshalTypeRef Implements MarshalAsAttribute.MarshalType as a type.
Public field SizeConst Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.
Public field SizeParamIndex Indicates which parameter contains the count of array elements, much like size_is in COM, and is zero-based.
Top

Show:
© 2017 Microsoft