[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.DBLayerAssembly: OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0
Syntax
C# |
---|
protected void AddParameters( SqlCommand myCommand, string parameterSP, string parameterValue, SqlDbType sdt ) |
Visual Basic (Declaration) |
---|
Protected Sub AddParameters ( _ myCommand As SqlCommand, _ parameterSP As String, _ parameterValue As String, _ sdt As SqlDbType _ ) |
Visual C++ |
---|
protected: void AddParameters( SqlCommand^ myCommand, String^ parameterSP, String^ parameterValue, SqlDbType sdt ) |
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..::.String
The value of the parameter to be assigned in string.
- sdt
- Type: System.Data..::.SqlDbType
SqlDbType enumerated type to ensure the parameter type is correctly passed.