ChangeMonitor.UniqueId Property

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft