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)


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
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


  • 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


TeamFoundationSqlResourceComponent Class

BindBinary Overload

Microsoft.TeamFoundation.Framework.Server Namespace