TeamFoundationSqlResourceComponent.BindSysname Method

A helper function that handles binding sysname strings to their sqlparameters. It makes sure null values are correctly set up.

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

Syntax

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

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: System.String

    Value of the parameter; an empty string gives you a NULL value if NULLs are allowed.

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