dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Parameter Class / DB2Parameter Constructor / DB2Parameter Constructor(String,Object)
The name of the parameter.
An Object that is the value of the DB2Parameter.
Example

In This Topic
    DB2Parameter Constructor(String,Object)
    In This Topic
    Initializes a new instance of the DB2Parameter class with the parameter name and a DB2Parameter object.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal parameterName As String, _
       ByVal value As Object _
    )
    public DB2Parameter( 
       string parameterName,
       object value
    )

    Parameters

    parameterName
    The name of the parameter.
    value
    An Object that is the value of the DB2Parameter.
    Example
    The following example creates a new DB2Parameter and sets some of its properties.
    public void CreateDB2Parameter() 
    {
            DB2Parameter myParameter = new DB2Parameter("DName", "e.g.: some string value");
            myParameter.Direction = ParameterDirection.Input;
    }
    Public Sub CreateDB2Parameter()
            Dim myParameter As New DB2Parameter("DName", "e.g.: some string value")
            myParameter.Direction = ParameterDirection.Input
    End Sub 'CreateDB2Parameter
    See Also