Class ShareFileModifiedException
An exception thrown if Stream returned from
ShareFileClient.OpenRead
or ShareFileClient.OpenReadAsync
observed that a file content has been modified during the read.
public class ShareFileModifiedException : Exception, ISerializable
- Inheritance
-
ShareFileModifiedException
- Implements
- Inherited Members
Constructors
ShareFileModifiedException(SerializationInfo, StreamingContext)
Initializes a new instance of the Exception class with serialized data.
protected ShareFileModifiedException(SerializationInfo info, StreamingContext streamingContext)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
streamingContext
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
ShareFileModifiedException(string, Uri, ETag, ETag, HttpRange)
Creates a new instance of ShareFileModifiedException.
public ShareFileModifiedException(string message, Uri resourceUri, ETag expectedETag, ETag actualETag, HttpRange range)
Parameters
message
stringThe message that describes the error.
resourceUri
UriThe URI of the resource that has been modified.
expectedETag
ETagThe ETag value that was expected during the read.
actualETag
ETagThe ETag value that was received from the service.
range
HttpRangeThe range that was requested for the service.
Properties
ActualETag
Gets the ETag value that was received from the service.
public ETag ActualETag { get; }
Property Value
- ETag
ExpectedETag
Gets the ETag value that was expected during the read.
public ETag ExpectedETag { get; }
Property Value
- ETag
Range
Gets the range that was requested for the service.
public HttpRange Range { get; }
Property Value
- HttpRange
ResourceUri
Gets the URI of the resurce that has been modified.
public Uri ResourceUri { get; }
Property Value
- Uri
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
info
parameter is a null reference (Nothing
in Visual Basic).