This topic has not yet been rated - Rate this topic

HostFileChangeMonitor.UniqueId Property

Gets an identifier for the HostFileChangeMonitor instance that is based on the set of monitored directories and file paths.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)
public override string UniqueId { get; }

Property Value

Type: System.String
An identifier for the change monitor.

The string that makes up the UniqueId property value is constructed from the following parts:

  • A file or directory path.

  • The most recent write time in UTC time, measured as ticks but represented as a hexadecimal string.

  • The file size, represented as a hexadecimal string.

If a file change monitor is monitoring multiple paths, the information returned by this property is concatenated into a single string for all the monitored directories and file paths.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ