HostFileChangeMonitor.UniqueId 屬性

定義

取得 HostFileChangeMonitor 執行個體的識別項,該識別項的基準是監控目錄和檔案路徑組。

public:
 virtual property System::String ^ UniqueId { System::String ^ get(); };
public override string UniqueId { get; }
member this.UniqueId : string
Public Overrides ReadOnly Property UniqueId As String

屬性值

變更監視器的識別項。

備註

構成屬性值的 UniqueId 字串是從下列部分建構的:

  • 檔案或目錄路徑。

  • UTC 時間的最新寫入時間,以刻度測量,但以十六進位字串表示。

  • 檔案大小,以十六進位字串表示。

如果檔案變更監視器正在監視多個路徑,則此屬性傳回的資訊會串連到所有受監視目錄和檔案路徑的單一字串中。

適用於