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
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also