'Declaration Public Sub AddCommandDependency( _ ByVal cmd As OracleCommand _ )
public void AddCommandDependency( OracleCommand cmd )
Parameters
- cmd
- A OracleCommand object to add.
'Declaration Public Sub AddCommandDependency( _ ByVal cmd As OracleCommand _ )
public void AddCommandDependency( OracleCommand cmd )
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.
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