Click or drag to resize
IVssBackupComponentsInitializeForRestore Method
The InitializeForRestore(String) method initializes the IIVssBackupComponents interface in preparation for a restore operation.

Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common (in AlphaVSS.Common.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
void InitializeForRestore(
	string xml
)

Parameters

xml
Type: SystemString
XML string containing the Backup Components Document generated by a backup operation and saved by SaveAsXml.
Exceptions
ExceptionCondition
ArgumentNullExceptionxml is
UnauthorizedAccessExceptionThe caller does not have sufficient backup privileges or is not an administrator.
OutOfMemoryExceptionOut of memory or other system resources.
SystemExceptionUnexpected VSS system error. The error code is logged in the event log.
VssBadStateExceptionThe backup components object is not initialized, this method has been called during a restore operation, or this method has not been called within the correct sequence.
VssInvalidXmlDocumentExceptionThe load operation of the specified XML document failed.
Remarks
The XML document supplied to this method initializes the IVssBackupComponents object with metadata previously stored by a call to SaveAsXml. Users should not tamper with this metadata document.
See Also