Click or drag to resize
IVssBackupComponentsSetRestoreState Method
Defines an overall configuration 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 SetRestoreState(
	VssRestoreType restoreType
)

Parameters

restoreType
Type: Alphaleonis.Win32.VssVssRestoreType
The type of restore to be performed.
Exceptions
ExceptionCondition
ArgumentExceptionOne of the parameter values is not valid.
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.
VssObjectNotFoundExceptionThe backup component does not exist.
VssInvalidXmlDocumentExceptionThe XML document is not valid. Check the event log for details.
Remarks

Typically, most restore operations will not need to override the default restore type Undefined.

If applications need to call SetRestoreState(VssRestoreType), it should be called prior to calling PreRestore.

Note Note
Windows XP: This method requires Windows Vista, Windows Server 2008 or Windows Server 2003
See Also