DataLakeFileClient Class

Definition

The DataLakeFileClient allows you to manipulate Azure Data Lake files.

public class DataLakeFileClient : Azure.Storage.Files.DataLake.DataLakePathClient
type DataLakeFileClient = class
    inherit DataLakePathClient
Public Class DataLakeFileClient
Inherits DataLakePathClient
Inheritance
DataLakeFileClient

Constructors

DataLakeFileClient()

Initializes a new instance of the DataLakeFileClient class for mocking.

DataLakeFileClient(String, String, String)

Initializes a new instance of the DataLakeDirectoryClient.

DataLakeFileClient(String, String, String, DataLakeClientOptions)

Initializes a new instance of the DataLakeDirectoryClient.

DataLakeFileClient(Uri)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, AzureSasCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, AzureSasCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, StorageSharedKeyCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, StorageSharedKeyCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, TokenCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, TokenCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

Properties

AccountName

Gets the Storage account name corresponding to the directory client.

(Inherited from DataLakePathClient)
CanGenerateSasUri

Determines whether the client is able to generate a SAS. If the client is authenticated with a StorageSharedKeyCredential.

(Inherited from DataLakePathClient)
FileSystemName

Gets the file system name name corresponding to the directory client.

(Inherited from DataLakePathClient)
MaxUploadLongBytes

Gets the maximum number of bytes that can be sent in each append call in Azure.Storage.Files.DataLake.DataLakeFileClient.UploadAsync(System.IO.Stream,Azure.Storage.Files.DataLake.Models.PathHttpHeaders,Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions,System.IProgress{System.Int64},Azure.Storage.StorageTransferOptions,System.Threading.CancellationToken).

Name

Gets the name of the file or directory.

(Inherited from DataLakePathClient)
Path

Gets the path corresponding to the path client.

(Inherited from DataLakePathClient)
Uri

Gets the directory's primary Uri endpoint.

(Inherited from DataLakePathClient)

Methods

Append(Stream, Int64, DataLakeFileAppendOptions, CancellationToken)

The Append(Stream, Int64, DataLakeFileAppendOptions, CancellationToken) operation uploads data to be appended to a file. Data can only be appended to a file. To apply previously uploaded data to a file, call Flush Data. Append is currently limited to 4000 MB per request. To upload large files all at once, consider using Upload(Stream).

For more information, see Update Path.

AppendAsync(Stream, Int64, DataLakeFileAppendOptions, CancellationToken)

The AppendAsync(Stream, Int64, DataLakeFileAppendOptions, CancellationToken) operation uploads data to be appended to a file. Data can only be appended to a file. To apply perviously uploaded data to a file, call Flush Data. Append is currently limited to 4000 MB per request. To upload large files all at once, consider using UploadAsync(Stream).

For more information, see Update Path.

Create(PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken)

The Create(PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken) operation creates a file. If the file already exists, it will be overwritten. If you don't intent to overwrite an existing file, consider using the CreateIfNotExists(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) API.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

Create(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken)

The Create(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken) operation creates a file or directory. If the path already exists, it will be overwritten. If you don't intent to overwrite an existing path, consider using the CreateIfNotExists(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) API.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

(Inherited from DataLakePathClient)
CreateAsync(PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken)

The Create(PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken) operation creates a file. If the file already exists, it will be overwritten. If you don't intent to overwrite an existing file, consider using the CreateIfNotExistsAsync(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) API.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

CreateAsync(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken)

The Create(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, DataLakeRequestConditions, CancellationToken) operation creates a file or directory. If the path already exists, it will be overwritten. If you don't intent to overwrite an existing path, consider using the CreateIfNotExists(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) API.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

(Inherited from DataLakePathClient)
CreateIfNotExists(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken)

The CreateIfNotExists(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) operation creates a file. If the file already exists, it is not changed.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

CreateIfNotExists(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken)

The CreateIfNotExists(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) operation creates a file or directory. If the file or directory already exists, it is not changed.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

(Inherited from DataLakePathClient)
CreateIfNotExistsAsync(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken)

The CreateIfNotExistsAsync(PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) operation creates a file. If the file already exists, it is not changed.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

CreateIfNotExistsAsync(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken)

The CreateIfNotExistsAsync(PathResourceType, PathHttpHeaders, IDictionary<String,String>, String, String, CancellationToken) operation creates a file or directory. If the file or directory already exists, it is not changed.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

(Inherited from DataLakePathClient)
Delete(DataLakeRequestConditions, CancellationToken)

The Delete(DataLakeRequestConditions, CancellationToken) operation marks the specified path deletion. The path is later deleted during garbage collection.

For more information, see Delete Path.

Delete(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The Delete(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation marks the specified path deletion. The path is later deleted during garbage collection.

For more information, see Delete Path.

(Inherited from DataLakePathClient)
DeleteAsync(DataLakeRequestConditions, CancellationToken)

The DeleteAsync(DataLakeRequestConditions, CancellationToken) operation marks the specified path deletion. The path is later deleted during garbage collection.

For more information, see Delete Path.

DeleteAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The DeleteAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation marks the specified path deletion. The path is later deleted during garbage collection.

For more information, see Delete Path.

(Inherited from DataLakePathClient)
DeleteIfExists(DataLakeRequestConditions, CancellationToken)

The DeleteIfExists(DataLakeRequestConditions, CancellationToken) operation marks the specified file for deletion, if the file exists. The file is later deleted during garbage collection.

For more information, see Delete Path.

DeleteIfExists(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The DeleteIfExists(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation marks the specified path for deletion, if the path exists. The path is later deleted during garbage collection.

For more information, see Delete Path.

(Inherited from DataLakePathClient)
DeleteIfExistsAsync(DataLakeRequestConditions, CancellationToken)

The DeleteIfExistsAsync(DataLakeRequestConditions, CancellationToken) operation marks the specified file for deletion, if the file exists. The file is later deleted during garbage collection.

For more information, see Delete Path.

DeleteIfExistsAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The DeleteIfExistsAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation marks the specified path deletion, if the path exists. The path is later deleted during garbage collection.

For more information, see Delete Path.

(Inherited from DataLakePathClient)
Exists(CancellationToken)

The Exists(CancellationToken) operation can be called on a DataLakePathClient to see if the associated file or director exists in the file system.

(Inherited from DataLakePathClient)
ExistsAsync(CancellationToken)

The ExistsAsync(CancellationToken) operation can be called on a DataLakePathClient to see if the associated file or directory exists in the file system.

(Inherited from DataLakePathClient)
Flush(Int64, Nullable<Boolean>, Nullable<Boolean>, PathHttpHeaders, DataLakeRequestConditions, CancellationToken)

The Flush(Int64, Nullable<Boolean>, Nullable<Boolean>, PathHttpHeaders, DataLakeRequestConditions, CancellationToken) operation flushes (writes) previously appended data to a file.

FlushAsync(Int64, Nullable<Boolean>, Nullable<Boolean>, PathHttpHeaders, DataLakeRequestConditions, CancellationToken)

The FlushAsync(Int64, Nullable<Boolean>, Nullable<Boolean>, PathHttpHeaders, DataLakeRequestConditions, CancellationToken) operation flushes (writes) previously appended data to a file.

GenerateSasUri(DataLakeSasBuilder)

The GenerateSasUri(DataLakeSasBuilder) returns a Uri that generates a DataLake File Service Shared Access Signature (SAS) Uri based on the Client properties and and builder. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a Service SAS.

(Inherited from DataLakePathClient)
GenerateSasUri(DataLakeSasPermissions, DateTimeOffset)

The GenerateSasUri(DataLakeSasPermissions, DateTimeOffset) returns a Uri that generates a DataLake Path Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a service SAS.

(Inherited from DataLakePathClient)
GetAccessControl(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The GetAccessControl(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation returns the access control data for a path.

For more information, see Get Properties.

GetAccessControlAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken)

The GetAccessControlAsync(Nullable<Boolean>, DataLakeRequestConditions, CancellationToken) operation returns the access control data for a path.

For more information, see Get Properties.

GetProperties(DataLakeRequestConditions, CancellationToken)

The GetProperties(DataLakeRequestConditions, CancellationToken) operation returns all user-defined metadata, standard HTTP properties, and system properties for the path. It does not return the content of the path.

For more information, see Get Properties.

GetPropertiesAsync(DataLakeRequestConditions, CancellationToken)

The GetPropertiesAsync(DataLakeRequestConditions, CancellationToken) operation returns all user-defined metadata, standard HTTP properties, and system properties for the path. It does not return the content of the path.

For more information, see Get Properties.

OpenRead(DataLakeOpenReadOptions, CancellationToken)

Opens a stream for reading from the file. The stream will only download the file as the stream is read from.

OpenReadAsync(DataLakeOpenReadOptions, CancellationToken)

Opens a stream for reading from the file. The stream will only download the file as the stream is read from.

OpenWrite(Boolean, DataLakeFileOpenWriteOptions, CancellationToken)

Opens a stream for writing to the file.

OpenWriteAsync(Boolean, DataLakeFileOpenWriteOptions, CancellationToken)

Opens a stream for writing to the file..

Query(String, DataLakeQueryOptions, CancellationToken)

The Query(String, DataLakeQueryOptions, CancellationToken) API returns the result of a query against the file.

QueryAsync(String, DataLakeQueryOptions, CancellationToken)

The Query(String, DataLakeQueryOptions, CancellationToken) API returns the result of a query against the file.

Read()

The Read() operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

Read(CancellationToken)

The Read(CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

Read(DataLakeFileReadOptions, CancellationToken)

The Azure.Storage.Files.DataLake.DataLakeFileClient.Read(Azure.HttpRange,Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions,System.Boolean,System.Threading.CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadAsync()

The ReadAsync() operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadAsync(CancellationToken)

The ReadAsync(CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadAsync(DataLakeFileReadOptions, CancellationToken)

The Azure.Storage.Files.DataLake.DataLakeFileClient.ReadAsync(Azure.HttpRange,Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions,System.Boolean,System.Threading.CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadTo(Stream, DataLakeFileReadToOptions, CancellationToken)

The ReadTo(Stream, DataLakeFileReadToOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to the provided stream.

ReadTo(Stream, DataLakeRequestConditions, StorageTransferOptions, CancellationToken)

The ReadTo(Stream, DataLakeRequestConditions, StorageTransferOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to destination.

ReadTo(String, DataLakeFileReadToOptions, CancellationToken)

The ReadTo(String, DataLakeFileReadToOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to the provided file path.

ReadTo(String, DataLakeRequestConditions, StorageTransferOptions, CancellationToken)

The ReadTo(String, DataLakeRequestConditions, StorageTransferOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to path.

ReadToAsync(Stream, DataLakeFileReadToOptions, CancellationToken)

The ReadToAsync(Stream, DataLakeFileReadToOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to the provided destination stream.

ReadToAsync(Stream, DataLakeRequestConditions, StorageTransferOptions, CancellationToken)

The ReadToAsync(Stream, DataLakeRequestConditions, StorageTransferOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to destination.

ReadToAsync(String, DataLakeFileReadToOptions, CancellationToken)

The ReadToAsync(String, DataLakeFileReadToOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to the provided file path.

ReadToAsync(String, DataLakeRequestConditions, StorageTransferOptions, CancellationToken)

The ReadToAsync(String, DataLakeRequestConditions, StorageTransferOptions, CancellationToken) operation downloads an entire file using parallel requests, and writes the content to path.

RemoveAccessControlRecursive(IList<RemovePathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The RemoveAccessControlRecursive(IList<RemovePathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation removes the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
RemoveAccessControlRecursiveAsync(IList<RemovePathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The RemoveAccessControlRecursiveAsync(IList<RemovePathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation removes the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
Rename(String, String, DataLakeRequestConditions, DataLakeRequestConditions, CancellationToken)

The Rename(String, String, DataLakeRequestConditions, DataLakeRequestConditions, CancellationToken) operation renames a Directory.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

RenameAsync(String, String, DataLakeRequestConditions, DataLakeRequestConditions, CancellationToken)

The RenameAsync(String, String, DataLakeRequestConditions, DataLakeRequestConditions, CancellationToken) operation renames a file or directory.

For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create.

ScheduleDeletion(DataLakeFileScheduleDeletionOptions, CancellationToken)

Schedules the file for deletation.

ScheduleDeletionAsync(DataLakeFileScheduleDeletionOptions, CancellationToken)

Schedules the file for deletation.

SetAccessControlList(IList<PathAccessControlItem>, String, String, DataLakeRequestConditions, CancellationToken)

The SetAccessControlList(IList<PathAccessControlItem>, String, String, DataLakeRequestConditions, CancellationToken) operation sets the Access Control on a path

For more information, see Update Path.

SetAccessControlListAsync(IList<PathAccessControlItem>, String, String, DataLakeRequestConditions, CancellationToken)

The SetAccessControlListAsync(IList<PathAccessControlItem>, String, String, DataLakeRequestConditions, CancellationToken) operation sets the Access Control on a path

For more information, see Update Path.

SetAccessControlRecursive(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The SetAccessControlRecursive(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation sets the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
SetAccessControlRecursiveAsync(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The SetAccessControlRecursiveAsync(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation sets the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
SetHttpHeaders(PathHttpHeaders, DataLakeRequestConditions, CancellationToken)

The SetHttpHeaders(PathHttpHeaders, DataLakeRequestConditions, CancellationToken) operation sets system properties on the path.

For more information, see Set Blob Properties.

SetHttpHeadersAsync(PathHttpHeaders, DataLakeRequestConditions, CancellationToken)

The SetHttpHeadersAsync(PathHttpHeaders, DataLakeRequestConditions, CancellationToken) operation sets system properties on the PATH.

For more information, see Set Blob Properties.

SetMetadata(IDictionary<String,String>, DataLakeRequestConditions, CancellationToken)

The SetMetadata(IDictionary<String,String>, DataLakeRequestConditions, CancellationToken) operation sets user-defined metadata for the specified path as one or more name-value pairs.

For more information, see Set Metadata.

SetMetadataAsync(IDictionary<String,String>, DataLakeRequestConditions, CancellationToken)

The SetMetadataAsync(IDictionary<String,String>, DataLakeRequestConditions, CancellationToken) operation sets user-defined metadata for the specified path as one or more name-value pairs.

For more information, see Set Metadata.

SetPermissions(PathPermissions, String, String, DataLakeRequestConditions, CancellationToken)

The SetPermissions(PathPermissions, String, String, DataLakeRequestConditions, CancellationToken) operation sets the file permissions on a path.

For more information, see Update Path.

SetPermissionsAsync(PathPermissions, String, String, DataLakeRequestConditions, CancellationToken)

The SetPermissionsAsync(PathPermissions, String, String, DataLakeRequestConditions, CancellationToken) operation sets the file permissions on a path.

For more information, see Update Path.

UpdateAccessControlRecursive(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The UpdateAccessControlRecursive(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation modifies the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
UpdateAccessControlRecursiveAsync(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken)

The UpdateAccessControlRecursiveAsync(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) operation modifies the Access Control on a path and subpaths

For more information, see Update Path.

(Inherited from DataLakePathClient)
Upload(Stream)

The Upload(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

Upload(Stream, Boolean, CancellationToken)

The Upload(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the overwrite parameter is not specified and the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

Upload(Stream, DataLakeFileUploadOptions, CancellationToken)

The Upload(Stream, DataLakeFileUploadOptions, CancellationToken) operation creates and uploads content to a file. If the file already exists, its content will be overwritten, unless otherwise specified in the Conditions or alternatively use Upload(Stream), Upload(Stream, Boolean, CancellationToken).

For more information, see Update Path.

Upload(String)

The Upload(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

Upload(String, Boolean, CancellationToken)

The Upload(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the overwrite parameter is not specified and the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

Upload(String, DataLakeFileUploadOptions, CancellationToken)

The Upload(String, DataLakeFileUploadOptions, CancellationToken) operation creates and uploads content to a file.If the file already exists, its content will be overwritten, unless otherwise specified in the Conditions or alternatively use Upload(Stream), Upload(Stream, Boolean, CancellationToken).

For more information, see Update Path.

UploadAsync(Stream)

The UploadAsync(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

UploadAsync(Stream, Boolean, CancellationToken)

The UploadAsync(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the overwrite parameter is not specified and the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

UploadAsync(Stream, DataLakeFileUploadOptions, CancellationToken)

The UploadAsync(Stream, DataLakeFileUploadOptions, CancellationToken) operation creates and uploads content to a file. If the file already exists, its content will be overwritten, unless otherwise specified in the Conditions or alternatively use UploadAsync(Stream), UploadAsync(Stream, Boolean, CancellationToken).

For more information, see Update Path.

UploadAsync(String)

The UploadAsync(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

UploadAsync(String, Boolean, CancellationToken)

The UploadAsync(Stream, Boolean, CancellationToken) operation creates and uploads content to a file.

If the overwrite parameter is not specified and the file already exists, then its content will not be overwritten. The request will be sent with If-None-Match Header with the value of the special wildcard. So if the file already exists a RequestFailedException is expected to be thrown.

For more information, see Update Path.

UploadAsync(String, DataLakeFileUploadOptions, CancellationToken)

The UploadAsync(String, DataLakeFileUploadOptions, CancellationToken) operation creates and uploads content to a file. If the file already exists, its content will be overwritten, unless otherwise specified in the Conditions or alternatively use UploadAsync(Stream), UploadAsync(Stream, Boolean, CancellationToken).

For more information, see Update Path.

Extension Methods

GetDataLakeLeaseClient(DataLakePathClient, String)

Initializes a new instance of the DataLakeLeaseClient class.

Applies to