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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
streamingContextStreamingContextThe 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
messagestringThe message that describes the error.
resourceUriUriThe URI of the resource that has been modified.
expectedETagETagThe ETag value that was expected during the read.
actualETagETagThe ETag value that was received from the service.
rangeHttpRangeThe 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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothingin Visual Basic).