This documentation is archived and is not being maintained.

StructLayoutAttribute Fields

The fields of the StructLayoutAttribute class are listed here. For a complete list of StructLayoutAttribute class members, see the StructLayoutAttribute Members topic.

Public Fields

public fieldCharSet Indicates how string data fields within the class should be marshaled as LPWSTR or LPSTR by default.
public fieldPack Controls the alignment of data fields of a class or structure in memory.
public fieldSize

Supported by the .NET Compact Framework.

Indicates the absolute size of the class or structure.

See Also

StructLayoutAttribute Class | System.Runtime.InteropServices Namespace