Partager via


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

This is 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(), _
    sqlType As SqlDbType _
) As SqlParameter
protected SqlParameter BindBinary(
    string parameterName,
    byte[] parameterValue,
    SqlDbType sqlType
)
protected:
SqlParameter^ BindBinary(
    String^ parameterName, 
    array<unsigned char>^ parameterValue, 
    SqlDbType sqlType
)
member BindBinary : 
        parameterName:string * 
        parameterValue:byte[] * 
        sqlType:SqlDbType -> SqlParameter
protected function BindBinary(
    parameterName : String, 
    parameterValue : byte[], 
    sqlType : SqlDbType
) : SqlParameter

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: array<System.Byte[]

    Value of the parameter.

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