Export (0) Print
Expand All

OracleParameter.Offset Property

Gets or sets the offset to the Value property.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

public int Offset { get; set; }
/** @property */
public int get_Offset ()

/** @property */
public void set_Offset (int value)

public function get Offset () : int

public function set Offset (value : int)

Not applicable.

Property Value

The offset to the Value. The default is 0.

The Offset property is used for client-side chunking of binary and string data. For example, in order to insert 10MB of text into a column on a server, a user might execute 10 parameterized inserts of 1MB chunks, shifting the value of Offset on each iteration by 1MB.

Offset specifies the number of bytes for binary types, and the number of characters for strings. The count for strings does not include the terminating character.

The following example creates a OracleParameter and sets some of its properties.

public void CreateOracleParameter() 
{
   OracleParameter parameter = new OracleParameter("pDName", OracleType.VarChar);
   parameter.IsNullable = true;
   parameter.Offset = 3;
}

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft