OdbcParameter.Offset 属性

定义

获取或设置列中数据的偏移量。Gets or sets the offset of the data within the column.

public:
 property int Offset { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int Offset { get; set; }
member this.Offset : int with get, set
Public Property Offset As Integer

属性值

列中数据的偏移量。The offset of the data within the column. 默认值为零。The default value is zero.

属性

注解

Offset 属性用于二进制和字符串类型。The Offset property is used for binary and string types. 对于固定长度数据类型,将忽略 Offset 的值。For fixed length data types, the value of Offset is ignored.

对于非字符串数据类型和 ANSI 字符串数据,Offset 属性是指字节数。For nonstring data types and ANSI string data, the Offset property refers to the number of bytes. 对于 Unicode 字符串数据,Offset 是指字符数。For Unicode string data, Offset refers to the number of characters.

适用于