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

結構起始處到欄位起始處的位元組位移。

適用於