Aracılığıyla paylaş


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, DataLakeClientOptions)

Initializes a new instance of the DataLakeDirectoryClient.

DataLakeFileClient(String, String, String)

Initializes a new instance of the DataLakeDirectoryClient.

DataLakeFileClient(Uri, AzureSasCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, AzureSasCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, StorageSharedKeyCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, StorageSharedKeyCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, TokenCredential, DataLakeClientOptions)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri, TokenCredential)

Initializes a new instance of the DataLakeFileClient class.

DataLakeFileClient(Uri)

Initializes a new instance of the DataLakeFileClient class.

Properties

AccountName

Gets the Storage account name corresponding to the directory client.

(Inherited from DataLakePathClient)
CanGenerateSasUri

Indicates whether the client is able to generate a SAS uri. Client can generate a SAS url if it 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(DataLakePathCreateOptions, CancellationToken)

The Create(DataLakePathCreateOptions, 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(DataLakePathCreateOptions, CancellationToken) API.

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

Create(PathResourceType, DataLakePathCreateOptions, CancellationToken)

The Create(PathResourceType, DataLakePathCreateOptions, 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, DataLakePathCreateOptions, CancellationToken) API.

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

(Inherited from DataLakePathClient)
CreateAsync(DataLakePathCreateOptions, CancellationToken)

The CreateAsync(DataLakePathCreateOptions, 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(DataLakePathCreateOptions, CancellationToken) API.

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

CreateAsync(PathResourceType, DataLakePathCreateOptions, CancellationToken)

The CreateAsync(PathResourceType, DataLakePathCreateOptions, 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 CreateIfNotExistsAsync(PathResourceType, DataLakePathCreateOptions, CancellationToken) API.

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

(Inherited from DataLakePathClient)
CreateIfNotExists(DataLakePathCreateOptions, CancellationToken)

The CreateIfNotExists(DataLakePathCreateOptions, 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, DataLakePathCreateOptions, CancellationToken)

The Azure.Storage.Files.DataLake.DataLakePathClient.CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PathResourceType,Azure.Storage.Files.DataLake.Models.PathHttpHeaders,System.Collections.Generic.IDictionary{System.String,System.String},System.String,System.String,System.Threading.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(DataLakePathCreateOptions, CancellationToken)

The CreateIfNotExistsAsync(DataLakePathCreateOptions, 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, DataLakePathCreateOptions, CancellationToken)

The Azure.Storage.Files.DataLake.DataLakePathClient.CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PathResourceType,Azure.Storage.Files.DataLake.Models.PathHttpHeaders,System.Collections.Generic.IDictionary{System.String,System.String},System.String,System.String,System.Threading.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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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 which could take several minutes.

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, DataLakeFileFlushOptions, CancellationToken)

The Flush(Int64, DataLakeFileFlushOptions, CancellationToken) operation flushes (writes) previously appended data to a file.

FlushAsync(Int64, DataLakeFileFlushOptions, CancellationToken)

The FlushAsync(Int64, DataLakeFileFlushOptions, 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)
GenerateUserDelegationSasUri(DataLakeSasBuilder, UserDelegationKey)

The GenerateUserDelegationSasUri(DataLakeSasBuilder, UserDelegationKey) returns a Uri that generates a DataLake Path Service Shared Access Signature (SAS) Uri based on the Client properties and builder passed. The SAS is signed by the user delegation key passed in.

For more information, see Creating an user delegation SAS.

(Inherited from DataLakePathClient)
GenerateUserDelegationSasUri(DataLakeSasPermissions, DateTimeOffset, UserDelegationKey)

The GenerateUserDelegationSasUri(DataLakeSasPermissions, DateTimeOffset, UserDelegationKey) returns a Uri that generates a DataLake Path Service Shared Access Signature (SAS) Uri based on the Client properties and parameter passed. The SAS is signed by the user delegation key passed in.

For more information, see Creating an user delegation 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.

GetParentDirectoryClientCore()

Create a new DataLakeDirectoryClient that pointing to this DataLakePathClient's parent container. The new DataLakeDirectoryClient uses the same request policy pipeline as the DataLakePathClient.

(Inherited from DataLakePathClient)
GetParentFileSystemClientCore()

Create a new DataLakeFileSystemClient that pointing to this DataLakePathClient's parent container. The new DataLakeFileSystemClient uses the same request policy pipeline as the DataLakePathClient.

(Inherited from DataLakePathClient)
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.

ReadContent()

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

For more information, see Get Blob.

ReadContent(CancellationToken)

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

For more information, see Get Blob.

ReadContent(DataLakeFileReadOptions, CancellationToken)

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

For more information, see Get Blob.

ReadContentAsync()

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

For more information, see Get Blob.

ReadContentAsync(CancellationToken)

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

For more information, see Get Blob.

ReadContentAsync(DataLakeFileReadOptions, CancellationToken)

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

For more information, see Get Blob.

ReadStreaming()

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

For more information, see Get Blob.

ReadStreaming(CancellationToken)

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

For more information, see Get Blob.

ReadStreaming(DataLakeFileReadOptions, CancellationToken)

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

For more information, see Get Blob.

ReadStreamingAsync()

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

For more information, see Get Blob.

ReadStreamingAsync(CancellationToken)

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

For more information, see Get Blob.

ReadStreamingAsync(DataLakeFileReadOptions, CancellationToken)

The ReadStreamingAsync(DataLakeFileReadOptions, 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(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.

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(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.

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 deletion.

ScheduleDeletionAsync(DataLakeFileScheduleDeletionOptions, CancellationToken)

Schedules the file for deletion.

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, 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(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(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.

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.

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(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(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.

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.

WithCustomerProvidedKey(Nullable<DataLakeCustomerProvidedKey>)

Initializes a new instance of the DataLakeFileClient class with an identical Uri source but the specified customerProvidedKey.

Extension Methods

GetDataLakeLeaseClient(DataLakePathClient, String)

Initializes a new instance of the DataLakeLeaseClient class.

GetParentDirectoryClient(DataLakePathClient)

Create a new DataLakeDirectoryClient that pointing to this DataLakePathClient's parent directory. The new DataLakeDirectoryClient uses the same request policy pipeline as the DataLakePathClient.

GetParentFileSystemClient(DataLakePathClient)

Create a new DataLakeFileSystemClient that pointing to this DataLakePathClient's parent container. The new DataLakeFileSystemClient uses the same request policy pipeline as the DataLakePathClient.

Applies to