StructLayoutAttribute Fields

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The StructLayoutAttribute type exposes the following members.

  Name Description
Public field CharSet Indicates whether 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.