CVssWriter::IsPathAffected 方法 (vswriter.h)

IsPathAffected方法會決定指定的目錄或檔案是否包含在目前的陰影複製集中。 目錄或檔案的路徑可以是遠端檔案共用的本機路徑或 UNC 路徑。

IsPathAffected 是由 CVssWriter 基類所實作的受保護方法。

語法

bool IsPathAffected(
  [in] LPCWSTR wszPath
);

參數

[in] wszPath

要查詢之目錄或檔案的路徑。 此路徑可以是遠端檔案共用的本機路徑或 UNC 路徑。

如果路徑參考目錄,它可以包含環境變數 (例如%SystemRoot%) ,但不能包含萬用字元。

傳回值

以下是這個方法的有效傳回碼。

意義
true
路徑包含在陰影複製集內含的磁片區集合中。
false
路徑不會包含在陰影複製集中的磁片區集合中。

備註

Windows 7、Windows Server 2008 R2、Windows Vista、Windows Server 2008、Windows XP 和 Windows Server 2003: 在 Windows 8 和 Windows Server 2012 之前,不支援遠端檔案共用。 寫入器僅支援本機資源—其絕對路徑以有效本機磁片區規格開頭的檔案集合,而且不能是對應的網路磁碟機機。 在解析任何環境變數之後, IsPathAffected (的輸入必須以此格式) 。

規格需求

   
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
目標平台 Windows
標頭 vswriter.h (包括 Vss.h、VsWriter.h)
程式庫 VssApi.lib

另請參閱

CVssWriter

CVssWriter::OnFreeze

CVssWriter::OnPrepareSnapshot

CVssWriter::OnThaw