Partager via


TeamFoundationSqlResourceComponent.BindBoolean Method

A helper function that handles binding a Boolean or a bit value to a sqlparameter.

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

Syntax

'Declaration
Protected Function BindBoolean ( _
    parameterName As String, _
    parameterValue As Boolean _
) As SqlParameter
protected SqlParameter BindBoolean(
    string parameterName,
    bool parameterValue
)
protected:
SqlParameter^ BindBoolean(
    String^ parameterName, 
    bool parameterValue
)
member BindBoolean : 
        parameterName:string * 
        parameterValue:bool -> SqlParameter
protected function BindBoolean(
    parameterName : String, 
    parameterValue : boolean
) : SqlParameter

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace