SetBytes Method (SmiEventSink, Int32, Int64, Byte[], Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sets the data, for a parameter or column, as the specified type.  No conversions are applied. The assembly that contains this class has a friend relationship with SQLAccess.dll.  This class is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: Microsoft.SqlServer.Server

Assembly: System.Data (in System.Data.dll)

MustOverride Function SetBytes(ByVal sink As SmiEventSink, ByVal ordinal As Integer, ByVal fieldOffset As Long, ByVal buffer As Byte(), ByVal bufferOffset As Integer, ByVal length As Integer) As Integer
abstract int SetBytes (SmiEventSink sink, int ordinal, long fieldOffset, Byte[] buffer, int bufferOffset, int length);

Parameters

Parameter

Description

sink

The SmiEventSink object to be used for event callbacks from the server.

ordinal

The zero-based column or parameter ordinal.

fieldOffset

The index within the column or parameter from which to begin the write operation.

buffer

The buffer into which to write the stream of bytes.

bufferOffset

The index for the buffer to begin the write operation.

length

The maximum length to write into the buffer.

Return Value

The actual number of bytes written.

Version Information

.NET Framework

Supported in: 2.0