This documentation is archived and is not being maintained.

StructLayoutAttribute Fields

The StructLayoutAttribute type exposes the following members.

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.