|IVssBackupComponentsIsVolumeSupported Method (String)|
bool IsVolumeSupported( string volumeName )
Function IsVolumeSupported ( volumeName As String ) As Boolean
bool IsVolumeSupported( String^ volumeName )
|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.|
|VssObjectNotFoundException||The specified volume was not found or was not available.|
IsVolumeSupported(String, Guid) will return if it is possible to create shadow copies on the given volume, even if the current configuration does not allow the creation of shadow copies on that volume at the present time.
For example, if the maximum number of shadow copies has been reached on a given volume (and therefore no more shadow copies can be created on that volume), the method will still indicate that the volume can be shadow copied.