IVssBackupComponentsGetSessionId Method |
Namespace: Alphaleonis.Win32.Vss
Exception | Condition |
---|---|
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. |
The session identifier is an opaque value that uniquely identifies a backup or restore session. It is used to distinguish the current session among multiple parallel backup or restore sessions.
As a best practice, writers and requesters should include the session ID in all diagnostics messages used for event logging and tracing.
![]() |
---|
Windows XP, Windows 2003, Windows Vista, Windows 2008: This method requires Windows 7 or Windows Server 2008 R2. |