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 _
public FieldOffsetAttribute(
   int offset
public: FieldOffsetAttribute(
   int offset
public function FieldOffsetAttribute(
   offset : int


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


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