|UnauthorizedAccessException||The caller does not have sufficient backup privileges or is not an administrator.|
|OutOfMemoryException||Out of memory or other system resources.|
|SystemException||Unexpected VSS system error. The error code is logged in the event log.|
|VssBadStateException||The 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.|
PrepareForBackup event, which is handled by each instance of each writer through the CVssWriter::OnPrepareBackup method.generates a
Before PrepareForBackup can be called, SetBackupState(Boolean, Boolean, VssBackupType, Boolean) must be called.