ChangeMonitor.UniqueId Property

.NET Framework (current version)

Gets a value that represents the ChangeMonitor class instance.

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

public abstract string UniqueId { get; }

Property Value

Type: System.String

The identifier for a change-monitor instance.

The UniqueId property value typically consists of dependency names combined string data that uniquely identifiers the data that is being monitored by a ChangeMonitor instance. The value of the UniqueId property is a string. The value of the string is used to assign the unique ID of the ChangeMonitor instance.

Notes to Implementers:

By overriding the property, you can define a custom implementation for the string value of the property in order to assign it a unique ID.

Notes to Inheritors:

In derived classes, you must set the value of the property in the constructor.

.NET Framework
Available since 4.0
Return to top