Table of Contents

Class ShareFileModifiedException

Namespace
Azure.Storage.Files.Shares.Models
Assembly
Azure.Storage.Files.Shares.dll

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 SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

streamingContext StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

info is null.

SerializationException

The class name is null or HResult is zero (0).

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 string

The message that describes the error.

resourceUri Uri

The URI of the resource that has been modified.

expectedETag ETag

The ETag value that was expected during the read.

actualETag ETag

The ETag value that was received from the service.

range HttpRange

The 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 SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).