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: (
void InitializeForBackup(
	string 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

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.
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