Click or drag to resize

IVssBackupComponentsUnexposeSnapshot Method

Unexposes a shadow copy either by deleting the file share or by removing the drive letter or mount point.

Namespace:  Alphaleonis.Win32.Vss
Assembly:  AlphaVSS.Common (in AlphaVSS.Common.dll) Version: (
void UnexposeSnapshot(
	Guid snapshotId


Type: SystemGuid
The shadow copy identifier. The value of this identifier should be the same as the value that was used when the shadow copy was exposed.
ArgumentExceptionOne of the parameter values is not valid.
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.
VssObjectNotFoundExceptionThe specified shadow copy does not exist or is not exposed.
VssProviderVetoExceptionExpected provider error. The provider logged the error in the event log.
VssUnexpectedProviderErrorExceptionUnexpected provider error. The error code is logged in the error log.

Note Note
Windows XP and Windows 2003: This method requires Windows Vista or Windows Server 2008.

See Also