TeamFoundationSqlResourceComponent.BindNullableInt Method

If parameterValue == nullValue, a NULL is bound to the given parameter. Otherwise, parameterValue is bound as a 32-bit integer.

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

Syntax

'Declaration
Protected Function BindNullableInt ( _
    parameterName As String, _
    parameterValue As Integer, _
    nullValue As Integer _
) As SqlParameter
protected SqlParameter BindNullableInt(
    string parameterName,
    int parameterValue,
    int nullValue
)
protected:
SqlParameter^ BindNullableInt(
    String^ parameterName, 
    int parameterValue, 
    int nullValue
)
member BindNullableInt : 
        parameterName:string * 
        parameterValue:int * 
        nullValue:int -> SqlParameter
protected function BindNullableInt(
    parameterName : String, 
    parameterValue : int, 
    nullValue : int
) : 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