FieldOffsetAttribute(Int32) 构造函数

定义

使用字段开始的结构中的偏移量初始化 FieldOffsetAttribute 类的新实例。Initializes a new instance of the FieldOffsetAttribute class with the offset in the structure to the beginning of the field.

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

从结构开始处到字段开始处的偏移量(以字节为单位)。The offset in bytes from the beginning of the structure to the beginning of the field.

适用于