Click or drag to resize

IVssBackupComponentsQueryProviders Method

The QueryProviders method queries providers on the system. The method can be called only during backup operations.

Namespace:  Alphaleonis.Win32.Vss
Assembly:  AlphaVSS.Common (in AlphaVSS.Common.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
IEnumerable<VssProviderProperties> QueryProviders()

Return Value

Type: IEnumerableVssProviderProperties
A list of VssProviderProperties objects representing the requested information.
Exceptions
ExceptionCondition
ArgumentExceptionOne of the parameter values is not valid.
UnauthorizedAccessExceptionThe caller is not an administrator or a backup operator.
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 queried object is not found.
VssProviderVetoExceptionExpected provider error. The provider logged the error in the event log.
VssUnexpectedProviderErrorExceptionUnexpected provider error. The error code is logged in the error log.
Remarks

The method may be called only during backup operations and must be preceded by calls to InitializeForBackup(String) and SetContext Overload.

See Also