This documentation is archived and is not being maintained.

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)

protected SqlParameter BindInt(
	string parameterName,
	int parameterValue
)

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.

Show: