System.Runtime.InteropServices.StructLayoutAttribute Members

The members of System.Runtime.InteropServices.StructLayoutAttribute are listed below.

See Also: Inherited members from System.Attribute

Public Constructors

Initalizes a new instance of the System.Runtime.InteropServices.StructLayoutAttribute class with the specified System.Runtime.InteropServices.LayoutKind enumeration member.

Initalizes a new instance of the System.Runtime.InteropServices.StructLayoutAttribute class with the specified System.Runtime.InteropServices.LayoutKind enumeration member.

Public Fields

CharSetCharSet.

Indicates whether string data fields within the class should be marshaled as LPWSTR or LPSTR by default.

Packint.

Controls the alignment of data fields of a class or structure in memory.

Sizeint.

Indicates the absolute size of the class or structure.

Public Properties

[read-only]
ValueLayoutKind.

Gets the System.Runtime.InteropServices.LayoutKind value that specifies how the class or structure is arranged.