StructLayoutAttribute Fields
Collapse the table of content
Expand the table of content

StructLayoutAttribute 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 StructLayoutAttribute type exposes the following members.

  NameDescription
Public field CharSet Indicates how string data fields within the class should be marshaled as LPWSTR or LPSTR by default.
Public field Pack Controls the alignment of data fields of a class or structure in memory.
Public field Size Indicates the absolute size of the class or structure.
Top

Show:
© 2017 Microsoft