The SqlDependency object represents a query notification dependency between an application and an instance of SQL Server 2005. An application can create a SqlDependency object and register to receive notifications via the OnChangeEventHandler event handler.
The SqlDependency type exposes the following members.
|AddCommandDependency||Associates a SqlCommand object with this SqlDependency instance.|
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Start||Overloaded. Starts the listener for receiving dependency change notifications.|
|Stop||Overloaded. Stops a listener for a connection specified in a previous Start call.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|