HostFileChangeMonitor::UniqueId Property

.NET Framework (current version)
 

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:
property String^ UniqueId {
	virtual String^ get() override;
}

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
Available since 4.0
Return to top
Show: