Database.AddOutParameter Method
Adds a new Out DbParameter object to the given command.
Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public void AddOutParameter(
DbCommand command,
string name,
DbType dbType,
int size
)
'Declaration
Public Sub AddOutParameter (
command As DbCommand,
name As String,
dbType As DbType,
size As Integer
)
public:
void AddOutParameter(
DbCommand^ command,
String^ name,
DbType dbType,
int size
)
Parameters
- command
Type: System.Data.Common.DbCommand
The command to add the out parameter.
name
Type: System.StringThe name of the parameter.
dbType
Type: System.Data.DbTypeOne of the DbType values.
size
Type: System.Int32The maximum size of the data within the column.