Поделиться через


TeamFoundationSqlResourceComponent.BindInt Method

A helper function that handles binding a 32-bit value to its sqlparameters.

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

Syntax

'Declaration
Protected Function BindInt ( _
    parameterName As String, _
    parameterValue As Integer _
) As SqlParameter
protected SqlParameter BindInt(
    string parameterName,
    int parameterValue
)
protected:
SqlParameter^ BindInt(
    String^ parameterName, 
    int parameterValue
)
member BindInt : 
        parameterName:string * 
        parameterValue:int -> SqlParameter
protected function BindInt(
    parameterName : String, 
    parameterValue : int
) : SqlParameter

Parameters

  • parameterName
    Type: System.String

    Name of the parameter in the statement.

  • parameterValue
    Type: System.Int32

    Value of the parameter. 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