SqlChangeMonitor Class

SqlChangeMonitor Class

.NET Framework (current version)
 

Provides change monitoring for SQL Server databases. This class cannot be inherited.

Namespace:   System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

System.Object
  System.Runtime.Caching.ChangeMonitor
    System.Runtime.Caching.SqlChangeMonitor

public sealed class SqlChangeMonitor : ChangeMonitor

NameDescription
System_CAPS_pubmethodSqlChangeMonitor(SqlDependency)

Initializes a new instance of the SqlChangeMonitor class.

NameDescription
System_CAPS_pubpropertyHasChanged

Gets a value that indicates that the state that is monitored by the ChangeMonitor class has changed.(Inherited from ChangeMonitor.)

System_CAPS_pubpropertyIsDisposed

Gets a value that indicates that the derived instance of a ChangeMonitor class is disposed.(Inherited from ChangeMonitor.)

System_CAPS_pubpropertyUniqueId

Gets an identifier for a SqlChangeMonitor instance. (Overrides ChangeMonitor.UniqueId.)

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources that are used by the current instance of the ChangeMonitor class.(Inherited from ChangeMonitor.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodNotifyOnChanged(OnChangedCallback)

Called by Cache implementers to register a callback and notify an ObjectCache instance through the OnChangedCallback delegate when a dependency has changed. (Inherited from ChangeMonitor.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The SqlChangeMonitor class wraps the ADO.NET SqlDependency class and adds change monitoring for SQL Server-based dependencies. Therefore, the SqlChangeMonitor class serves as a bridge between the ADO.NET SqlDependency object and the System.Runtime.Caching namespace.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft