[This is preliminary documentation and is subject to change.]

Adds the parameter to the SqlCommand for the stored procedure. This done to make the parameter assignment simple for Stored Procedure.

Namespace:  OfficeClip.DBLayer
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
protected void AddParameters(
	SqlCommand myCommand,
	string parameterSP,
	int parameterValue,
	SqlDbType sdt,
	int size
)
Visual Basic (Declaration)
Protected Sub AddParameters ( _
	myCommand As SqlCommand, _
	parameterSP As String, _
	parameterValue As Integer, _
	sdt As SqlDbType, _
	size As Integer _
)
Visual C++
protected:
void AddParameters(
	SqlCommand^ myCommand, 
	String^ parameterSP, 
	int parameterValue, 
	SqlDbType sdt, 
	int size
)

Parameters

myCommand
Type: System.Data.SqlClient..::.SqlCommand
The SqlCommand object passed as reference.
parameterSP
Type: System..::.String
The Stored Procudure parameter name string.
parameterValue
Type: System..::.Int32
The value of the parameter to be assigned in integer.
sdt
Type: System.Data..::.SqlDbType
SqlDbType enumerated type to ensure the parameter type is correctly passed.
size
Type: System..::.Int32
size of the input parameter.

See Also