Click or drag to resize

IVssImplementationGetSnapshotCompatibility Method

Determines whether certain volume control or file I/O operations are disabled for the given volume if a shadow copy of it exists.

Namespace:  Alphaleonis.Win32.Vss
Assembly:  AlphaVSS.Common (in AlphaVSS.Common.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
VssSnapshotCompatibility GetSnapshotCompatibility(
	string volumeName
)

Parameters

volumeName
Type: SystemString
Name of the volume. The name of the volume to be checked must be in one of the following formats:
  • The path of a volume mount point with a backslash (\)
  • A drive letter with backslash (\), for example, D:\
  • A unique volume name of the form \\?\Volume{GUID}\ (where GUID is the unique global identifier of the volume) with a backslash (\)

Return Value

Type: VssSnapshotCompatibility
A bit mask (or bitwise OR) of VssSnapshotCompatibility values that indicates whether certain volume control or file I/O operations are disabled for the given volume if a shadow copy of it exists.
Exceptions
ExceptionCondition
ArgumentExceptionOne of the parameters 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.
VssProviderVetoExceptionExpected provider error. The provider logged the error in the event log.
VssObjectNotFoundExceptionThe specified volume was not found.
VssUnexpectedProviderErrorExceptionUnexpected provider error. The error code is logged in the event log file.
Remarks

Use IsVolumeSnapshotted(String) to determine whether a snapshot exists for the specified volume or not.

If no volume control or file I/O operations are disabled for the selected volume, then the shadow copy capability of the selected volume returned will None.

See Also