Export (0) Print
Expand All

StructLayoutAttribute Constructor (LayoutKind)

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal layoutKind As LayoutKind _
)
[C#]
public StructLayoutAttribute(
   LayoutKind layoutKind
);
[C++]
public: StructLayoutAttribute(
   LayoutKind layoutKind
);
[JScript]
public function StructLayoutAttribute(
   layoutKind : LayoutKind
);

Parameters

layoutKind
One of the LayoutKind values that specifes how the class or structure should be arranged.

Remarks

For readable code that is less prone to error, always use this constructor.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

StructLayoutAttribute Class | StructLayoutAttribute Members | System.Runtime.InteropServices Namespace | StructLayoutAttribute Constructor Overload List | LayoutKind

Show:
© 2014 Microsoft