Click or drag to resize

IVssBackupComponentsInitializeForBackup Method

The InitializeForBackup(String) method initializes the backup components metadata in preparation for backup.

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

Parameters

xml
Type: SystemString

During imports of transported shadow copies, this parameter must be the original document generated when creating the saved shadow copy and saved using SaveAsXml.

This parameter may be

Exceptions
ExceptionCondition
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 XML document is not valid. Check the event log for details.
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