dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleDependency Class / AddCommandDependency Method
A OracleCommand object to add.

In This Topic
    AddCommandDependency Method
    In This Topic
    Adds new OracleCommand object to the current OracleDependency instance.
    Syntax
    'Declaration
     
    Public Sub AddCommandDependency( _
       ByVal cmd As OracleCommand _
    ) 
    public void AddCommandDependency( 
       OracleCommand cmd
    )

    Parameters

    cmd
    A OracleCommand object to add.
    Remarks

    The AddCommandDependency method creates a new OracleNotificationRequest object and assigns it to the OracleCommand.Notification property. The values of OracleNotificationRequest.IsNotifiedOnce, OracleNotificationRequest.IsPersistent, and OracleNotificationRequest.Timeout properties of OracleNotificationRequest are inherited from OracleDependency, either default or specified in the constructor.

    Many OracleCommand objects can be attached to single OracleDependency object, but same OracleCommand object cannot be used with several OracleDependency objects.

    You can also bind an OracleCommand object using some of the OracleDependency constructors.

    See Also