<PackageReference Include="Microsoft.Azure.Storage.File" Version="11.2.1" />

Microsoft.Azure.Storage.File.Protocol.FileHttpRequestMessageFactory

public static StorageRequestMessage AbortCopy(Uri uri, int? timeout, string copyId, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Generates a web request to abort a copy operation.

public static void AddMetadata(StorageRequestMessage request, IDictionary<string, string> metadata)

Adds user-defined metadata to the request as one or more name-value pairs.

public static void AddMetadata(StorageRequestMessage request, string name, string value)

Adds user-defined metadata to the request as a single name-value pair.

public static StorageRequestMessage CloseHandle(Uri uri, int? timeout, DateTimeOffset? shareSnapshot, string handleId, bool? recursive, FileContinuationToken token, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to close one or more open handles for a file or directory.

public static StorageRequestMessage CopyFrom(Uri uri, int? timeout, Uri source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Generates a web request to copy.

public static StorageRequestMessage Create(Uri uri, int? timeout, FileProperties properties, string filePermissionToSet, long fileSize, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to create a new file.

public static StorageRequestMessage Delete(Uri uri, int? timeout, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to delete a file.

public static StorageRequestMessage Get(Uri uri, int? timeout, DateTimeOffset? shareSnapshot, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to get the file's content, properties, and metadata.

public static StorageRequestMessage Get(Uri uri, int? timeout, long? offset, long? count, ChecksumRequested rangeContentChecksumRequested, DateTimeOffset? shareSnapshot, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to return a specified range of the file's content, together with its properties and metadata.

public static StorageRequestMessage GetMetadata(Uri uri, int? timeout, DateTimeOffset? shareSnapshot, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to return the user-defined metadata for the file.

public static StorageRequestMessage GetProperties(Uri uri, int? timeout, DateTimeOffset? shareSnapshot, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to return the file's system properties.

public static StorageRequestMessage GetServiceProperties(Uri uri, int? timeout, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to get the properties of the service.

public static StorageRequestMessage ListHandles(Uri uri, int? timeout, DateTimeOffset? shareSnapshot, int? maxResults, bool? recursive, FileContinuationToken nextMarker, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to return the list of open handles for a file or directory.

public static StorageRequestMessage ListRanges(Uri uri, int? timeout, long? offset, long? count, DateTimeOffset? shareSnapshot, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to return the list of valid ranges for a file.

public static StorageRequestMessage PutRange(Uri uri, int? timeout, FileRange fileRange, FileRangeWrite fileRangeWrite, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to write or clear a range of pages in a file.

public static StorageRequestMessage PutRangeFromUrl(Uri uri, Uri sourceUri, FileRange sourceFileRange, FileRange destFileRange, int? timeout, Checksum sourceContentChecksum, AccessCondition sourceAccessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to write a range of pages in a file from the source file.

public static StorageRequestMessage Resize(Uri uri, int? timeout, long newFileSize, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

The absolute URI to the file.The server timeout interval.The new file size. Set this parameter to null to keep the existing file size.The access condition to apply to the request.HttpContent for the requestAn OperationContext object for tracking the current operation.A canonicalizer that converts HTTP request data into a standard form appropriate for signing.A StorageCredentials object providing credentials for the request.A web request to use to perform the operation.

public static StorageRequestMessage SetMetadata(Uri uri, int? timeout, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to set user-defined metadata for the file.

public static StorageRequestMessage SetProperties(Uri uri, int? timeout, FileProperties properties, string filePermissionToSet, AccessCondition accessCondition, HttpContent content, OperationContext operationContext, ICanonicalizer canonicalizer, StorageCredentials credentials)

Constructs a web request to set system properties for a file.