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.

    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