This is a helper function that handles binding strings to their SqlParameters.
It makes sure that null values are correctly handled. This is the old version of this method; use the overload that takes a BindStringBehavior to be more explicit about how null and empty strings are to be handled.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Function BindString ( _
    parameterName As String, _
    parameterValue As String, _
    maxLength As Integer, _
    allowNull As Boolean, _
    dbType As SqlDbType _
) As SqlParameter
protected SqlParameter BindString(
    string parameterName,
    string parameterValue,
    int maxLength,
    bool allowNull,
    SqlDbType dbType
)
protected:
SqlParameter^ BindString(
    String^ parameterName, 
    String^ parameterValue, 
    int maxLength, 
    bool allowNull, 
    SqlDbType dbType
)
member BindString : 
        parameterName:string * 
        parameterValue:string * 
        maxLength:int * 
        allowNull:bool * 
        dbType:SqlDbType -> SqlParameter
protected function BindString(
    parameterName : String, 
    parameterValue : String, 
    maxLength : int, 
    allowNull : boolean, 
    dbType : SqlDbType
) : SqlParameter
Parameters
- parameterName 
 Type: System.String- Name of the parameter in the statement. 
- parameterValue 
 Type: System.String- Value of the parameter. 
- maxLength 
 Type: System.Int32- The size of the column that will hold the value. A negative value means unlimited length. 
- allowNull
 Type: System.Boolean
- dbType 
 Type: System.Data.SqlDbType- A SqlDbType such as NVarChar or VarChar. 
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.