FieldOffsetAttribute(Int32) 建構函式

定義

初始化一個新的類別實例 FieldOffsetAttribute ,將結構中的偏移量初始化為欄位的起始。

public:
 FieldOffsetAttribute(int offset);
public FieldOffsetAttribute(int offset);
new System.Runtime.InteropServices.FieldOffsetAttribute : int -> System.Runtime.InteropServices.FieldOffsetAttribute
Public Sub New (offset As Integer)

參數

offset
Int32

從結構起始點到欄位起始點的位元組。

適用於