This documentation is archived and is not being maintained.

FieldOffsetAttribute Constructor

Initializes a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field.

[Visual Basic]
Public Sub New( _
   ByVal offset As Integer _
)
[C#]
public FieldOffsetAttribute(
   int offset
);
[C++]
public: FieldOffsetAttribute(
   int offset
);
[JScript]
public function FieldOffsetAttribute(
   offset : int
);

Parameters

offset
The offset in bytes from the beginning of the structure to the beginning of the field.

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

FieldOffsetAttribute Class | FieldOffsetAttribute Members | System.Runtime.InteropServices Namespace

Show: