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.StringName of the parameter in the statement.
parameterValue
Type: System.StringValue of the parameter; an empty string gives you a NULL value if NULLs are allowed.
- allowNull
Type: System.Boolean
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.