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.StringName of the parameter in the statement.
parameterValue
Type: array<System.Byte[]Value of the parameter.
length
Type: System.Int32How much of the byte array to use.
- sqlType
Type: System.Data.SqlDbType
Return Value
Type: System.Data.SqlClient.SqlParameter
The newly created and initialized [sqlparameter].
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.