IVssComponent::GetRestoreSubcomponentCount 方法 (vswriter.h)

GetRestoreSubcomponentCount 方法會傳回與元件相關聯的子元件數目。

寫入器或要求者可以呼叫這個方法。

語法

HRESULT GetRestoreSubcomponentCount(
  [out] UINT *pcRestoreSubcomponent
);

參數

[out] pcRestoreSubcomponent

呼叫端配置的變數位址,該變數會接收與元件相關聯的子元件數目。

傳回值

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

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

規格需求

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

另請參閱

IVssComponent

IVssComponent::GetRestoreSubcomponent