[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, byte[] parameterValue, SqlDbType sdt ) |
Visual Basic (Declaration) |
---|
Protected Sub AddParameters ( _ myCommand As SqlCommand, _ parameterSP As String, _ parameterValue As Byte(), _ sdt As SqlDbType _ ) |
Visual C++ |
---|
protected: void AddParameters( SqlCommand^ myCommand, String^ parameterSP, array<unsigned char>^ 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: array<System..::.Byte>[]()[]
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.