UniParameter Constructor(String,UniDbType,Int32,ParameterDirection,Boolean,Byte,Byte,String,DataRowVersion,Object)
On this page
Initializes a new instance of the
UniParameter class with the parameter name, data type, width, source column name, parameter direction, numeric precision, and other properties.
Syntax
Parameters
- parameterName
- The name of the parameter.
- dbType
- One of the UniDbType values.
- size
- The maximum size, in bytes, of the data within the column.
- direction
- One of the System.Data.ParameterDirection values.
- isNullable
- true if the value of the field can be null; otherwise, false.
- precision
- The total number of digits to the left and right of the decimal point to which Value is resolved.
- scale
- The total number of decimal places to which Value is resolved.
- sourceColumn
- The name of the source column.
- sourceVersion
- One of the System.Data.DataRowVersion values.
- value
- An Object that is the value of the UniParameter.
Example
The following example creates a
UniParameter and displays the
ParameterName.
|
|---|
public void CreateUniParameter()
{
UniParameter myParameter = new UniParameter("DName", UniDbType.VarChar, 15, ParameterDirection.Output, true, 0, 0, "DName", DataRowVersion.Current, "DEVELOPMENT");
MessageBox.Show(myParameter.ToString());
} |
|
|---|
Public Sub CreateUniParameter()
Dim myParameter As New UniParameter("DName", UniDbType.VarChar, 15, ParameterDirection.Output, True, 0, 0, "DName", DataRowVersion.Current, "DEVELOPMENT")
MessageBox.Show(myParameter.ToString())
End Sub |
See Also