This documentation is archived and is not being maintained.

StructLayoutAttribute Constructor (Int16)

.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 Short _
)
[C#]
public StructLayoutAttribute(
   short layoutKind
);
[C++]
public: StructLayoutAttribute(
   short layoutKind
);
[JScript]
public function StructLayoutAttribute(
   layoutKind : Int16
);

Parameters

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

Remarks

This constructor takes an underlying 16-bit integer that represents each LayoutKind enumeration member. The Type Library Importer (Tlbimp.exe) uses 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, Common Language Infrastructure (CLI) Standard

See Also

StructLayoutAttribute Class | StructLayoutAttribute Members | System.Runtime.InteropServices Namespace | StructLayoutAttribute Constructor Overload List | System.Runtime.InteropServices.LayoutKind | Type Library Importer (Tlbimp.exe)

Show: