System.Runtime.InteropServices.LayoutKind Enum

public enum LayoutKind

Base Types

Object
  ValueType
    Enum
      LayoutKind

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Indicates the physical memory layout of objects exported to unmanaged code.

See Also

System.Runtime.InteropServices Namespace

Members

LayoutKind Fields

LayoutKind.Auto Field
LayoutKind.Explicit Field
LayoutKind.Sequential Field
LayoutKind.value__ Field


LayoutKind.Auto Field

Auto = 3;

Summary

Indicates that the appropriate layout of members of an object is automatically chosen. [Note: The layout in this case is implementation defined.]

See Also

System.Runtime.InteropServices.LayoutKind Enum, System.Runtime.InteropServices Namespace

LayoutKind.Explicit Field

Explicit = 2;

Summary

Indicates that the precise position of each member of an object is explicitly controlled in unmanaged memory. Each member of the exported class or structure is required to use FieldOffsetAttribute to indicate the position of that field within the type.

[Note: For an example that uses FieldOffsetAttribute, see the StructLayoutAttribute class overview.]

See Also

System.Runtime.InteropServices.LayoutKind Enum, System.Runtime.InteropServices Namespace

LayoutKind.Sequential Field

Sequential = 0;

Summary

Indicates that object members are laid out sequentially, in the order in which they appear in the object's type definition.

See Also

System.Runtime.InteropServices.LayoutKind Enum, System.Runtime.InteropServices Namespace

LayoutKind.value__ Field

value__;

See Also

System.Runtime.InteropServices.LayoutKind Enum, System.Runtime.InteropServices Namespace