Partager via


TeamFoundationSqlResourceComponent.BindBinary Method (String, array<Byte , Int32, SqlDbType)

A helper function that handles binding a binary value to a sqlparameter.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Function BindBinary ( _
    parameterName As String, _
    parameterValue As Byte(), _
    length As Integer, _
    sqlType As SqlDbType _
) As SqlParameter
protected SqlParameter BindBinary(
    string parameterName,
    byte[] parameterValue,
    int length,
    SqlDbType sqlType
)
protected:
SqlParameter^ BindBinary(
    String^ parameterName, 
    array<unsigned char>^ parameterValue, 
    int length, 
    SqlDbType sqlType
)
member BindBinary : 
        parameterName:string * 
        parameterValue:byte[] * 
        length:int * 
        sqlType:SqlDbType -> SqlParameter
protected function BindBinary(
    parameterName : String, 
    parameterValue : byte[], 
    length : int, 
    sqlType : SqlDbType
) : SqlParameter

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: array<System.Byte[]

    Value of the parameter.

  • length
    Type: System.Int32

    How much of the byte array to use.

Return Value

Type: System.Data.SqlClient.SqlParameter
The newly created and initialized SqlParameter.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

BindBinary Overload

Microsoft.TeamFoundation.Framework.Server Namespace