IVssWriterComponents::GetComponentCount method

The GetComponentCount method returns the number of a given writer's components explicitly stored in the Backup Components Document.

Syntax

HRESULT GetComponentCount(
  OUT UINT *pcComponents
);

Parameters

pcComponents

Pointer to the number of a writer's components stored in the Backup Components Document.

Return value

The following are the valid return codes for this method.

Value Meaning
S_OK
Successfully returned the component.
E_INVALIDARG
One of the parameter values is not valid.
E_OUTOFMEMORY
The caller is out of memory or other system resources.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vswriter.h (include Vss.h, VsWriter.h)
Library VssApi.lib

See also

IVssWriterComponents