PipelineBuffer.GetBlobLength 方法

Gets the number of bytes contained in a binary large object (BLOB) PipelineBuffer column.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Dts.Pipeline
程序集:  Microsoft.SqlServer.PipelineHost(在 Microsoft.SqlServer.PipelineHost.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public Function GetBlobLength ( _
    columnIndex As Integer _
) As UInteger
用法
Dim instance As PipelineBuffer 
Dim columnIndex As Integer 
Dim returnValue As UInteger 

returnValue = instance.GetBlobLength(columnIndex)
[CLSCompliantAttribute(false)]
public uint GetBlobLength(
    int columnIndex
)
[CLSCompliantAttribute(false)]
public:
unsigned int GetBlobLength(
    int columnIndex
)
[<CLSCompliantAttribute(false)>]
member GetBlobLength : 
        columnIndex:int -> uint32
public function GetBlobLength(
    columnIndex : int
) : uint

参数

  • columnIndex
    类型:System.Int32
    The index of the column containing the BLOB.

返回值

类型:System.UInt32
The number of bytes in the binary large object.

注释

The GetBlobLength method is used to determine the number of bytes contained in a PipelineBuffer column containing a BLOB data type, such as a DT_IMAGE. This method is typically called prior to a call to the GetBlobData method. The third parameter to GetBlobData is the number of bytes to retrieve from the BLOB. You call GetBlobLength prior to GetBlobData when you want to retrieve all the bytes in a BLOB PipelineBuffer column.

请参阅

参考

PipelineBuffer 类

Microsoft.SqlServer.Dts.Pipeline 命名空间