Mono Class Library: System.Runtime.InteropServices.StructLayoutAttribute Overview | Members

System.Runtime.InteropServices.StructLayoutAttribute Constructor

Constructs and initializes a new instance of the System.Runtime.InteropServices.StructLayoutAttribute class with the specified value.

public StructLayoutAttribute (short layoutKind)

Parameters

layoutKind
A short set to a System.Runtime.InteropServices.LayoutKind value that specifies how the class or structure is arranged in memory.

Remarks

If the layoutKind parameter does not represent a valid System.Runtime.InteropServices.LayoutKind value, a runtime error occurs.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0