IVssWriterComponents::GetComponentCount 方法 (vswriter.h)

GetComponentCount 方法會傳回指定寫入器明確儲存在備份元件檔中的元件數目。

語法

HRESULT GetComponentCount(
  [out] UINT *pcComponents
);

參數

[out] pcComponents

寫入器儲存在備份元件檔中之元件數目的指標。

傳回值

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

意義
S_OK
已成功傳回元件。
E_INVALIDARG
其中一個參數值無效。
E_OUTOFMEMORY
呼叫端記憶體不足或其他系統資源。

規格需求

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

另請參閱

IVssWriterComponents