Share via


LayoutKind Enumeration

Controls the layout of an object exported to unmanaged code.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Syntax

[SerializableAttribute]
public enum LayoutKind

Members

  Member name Description
Auto A value that causes the common language runtime (CLR) to choose an appropriate layout for the members of an object in unmanaged memory automatically. You should not attempt to expose objects defined with this enumeration member outside of managed code. Any such attempt will generate an exception.
Explicit A value that causes the precise position of each member of an object in unmanaged memory to be controlled explicitly .
Sequential A value that causes the members of an object to be laid out sequentially, in the order in which they appear when exported to unmanaged memory.

Remarks

Items in this namespace are for use by Microsoft® Visual Studio®. You should not try to use them in your applications.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

System.Runtime.InteropServices Namespace