Partager via


TeamFoundationSqlResourceComponent.BindNullableByte Method

This is a helper function that handles binding an 8-bit value to its SqlParameters.

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

Syntax

'Declaration
Protected Function BindNullableByte ( _
    parameterName As String, _
    parameterValue As Byte, _
    nullValue As Byte _
) As SqlParameter
protected SqlParameter BindNullableByte(
    string parameterName,
    byte parameterValue,
    byte nullValue
)
protected:
SqlParameter^ BindNullableByte(
    String^ parameterName, 
    unsigned char parameterValue, 
    unsigned char nullValue
)
member BindNullableByte : 
        parameterName:string * 
        parameterValue:byte * 
        nullValue:byte -> SqlParameter
protected function BindNullableByte(
    parameterName : String, 
    parameterValue : byte, 
    nullValue : byte
) : SqlParameter

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: System.Byte

    Value of the parameter.

  • nullValue
    Type: System.Byte

    If parameterValue == nullValue, a NULL is bound.

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace