Class VssDeleteSnapshotsFailedException
Exception thrown to indicate that the requested deletion of snapshots did not complete successfully.
Inherited Members
Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common.dll
Syntax
[Serializable]
public sealed class VssDeleteSnapshotsFailedException : VssException, ISerializable, _Exception
Remarks
To get further information about the cause of the error, check the inner exception which is populated with the original exception that caused the deletion to fail.
Constructors
| Improve this Doc View SourceVssDeleteSnapshotsFailedException()
Initializes a new instance of the VssDeleteSnapshotsFailedException class.
Declaration
public VssDeleteSnapshotsFailedException()
VssDeleteSnapshotsFailedException(Int32, Guid, Exception)
Initializes a new instance of the VssDeleteSnapshotsFailedException class, specifying the number of successfully deleted snapshots, the id of the snapshot on which the delete operation failed and the exception causing the delete operation to fail.
Declaration
public VssDeleteSnapshotsFailedException(int deletedSnapshotsCount, Guid nonDeletedSnapshotId, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Int32 | deletedSnapshotsCount | The number of successfully deleted snapshots. |
Guid | nonDeletedSnapshotId | The id of the non deleted snapshot, or Empty if such information is not available. |
Exception | innerException | The inner exception. |
VssDeleteSnapshotsFailedException(String)
Initializes a new instance of the VssDeleteSnapshotsFailedException class with the specified error message.
Declaration
public VssDeleteSnapshotsFailedException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message. |
VssDeleteSnapshotsFailedException(String, Exception)
Initializes a new instance of the VssDeleteSnapshotsFailedException class with the specified error message and a reference to the exception causing this exception to be thrown.
Declaration
public VssDeleteSnapshotsFailedException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message. |
Exception | innerException | The inner exception. |
Properties
| Improve this Doc View SourceDeletedSnapshotsCount
Gets the number of successfully deleted snapshots.
Declaration
public int DeletedSnapshotsCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of successfully deleted snapshots. |
NonDeletedSnapshotId
Gets the non id of the snapshot that failed to be deleted.
Declaration
public Guid NonDeletedSnapshotId { get; }
Property Value
Type | Description |
---|---|
Guid | The id of the snapshot that could not be deleted. |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |