This topic has not yet been rated - Rate this topic

SqlDependency Members

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 following tables list the members exposed by the SqlDependency type.

  Name Description
Public method SqlDependency Overloaded. Creates a new instance of the SqlDependency class.
Top
  Name Description
Public property HasChanges Gets a value that indicates whether one of the result sets associated with the dependency has changed.
Public property Id Gets a value that uniquely identifies this instance of the SqlDependency class.
Top
(see also Protected Methods )
  Name Description
Public method AddCommandDependency Associates a SqlCommand object with this SqlDependency instance.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Static Start Overloaded. Starts the listener for receiving dependency change notifications.
Public method Static Stop Overloaded. Stops a listener for a connection specified in a previous Start call.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
  Name Description
Public event OnChange Occurs when a notification is received for any of the commands associated with this SqlDependency object.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ