Microsoft.Azure.Storage.File.CloudFileClient
Provides a client-side logical representation of the Microsoft Azure File service. This client is used to configure and execute requests against the File service.
Gets or sets the authentication scheme to use to sign HTTP requests.
Gets the base URI for the File service client.
Gets or sets a buffer manager that implements the IBufferManager interface,
specifying a buffer pool for use with operations against the File service client.
Gets the account credentials used to create the File service client.
Gets or sets the default request options for requests made via the File service client.
Gets the list of URIs for all locations.
public CloudFileClient(Uri baseUri, StorageCredentials credentials, DelegatingHandler delegatingHandler = null)
Initializes a new instance of the CloudFileClient class using the specified File service endpoint
and account credentials.
public CloudFileClient(StorageUri storageUri, StorageCredentials credentials, DelegatingHandler delegatingHandler = null)
Initializes a new instance of the CloudFileClient class using the specified File service endpoint
and account credentials.
public virtual ICancellableAsyncResult BeginGetServiceProperties(AsyncCallback callback, object state)
Begins an asynchronous operation to get service properties for the File service.
public virtual ICancellableAsyncResult BeginGetServiceProperties(FileRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, object state)
Begins an asynchronous operation to get service properties for the File service.
public virtual ICancellableAsyncResult BeginListSharesSegmented(FileContinuationToken currentToken, AsyncCallback callback, object state)
Begins an asynchronous request to return a result segment containing a collection of shares.
public virtual ICancellableAsyncResult BeginListSharesSegmented(string prefix, FileContinuationToken currentToken, AsyncCallback callback, object state)
Begins an asynchronous request to return a result segment containing a collection of shares.
public virtual ICancellableAsyncResult BeginListSharesSegmented(string prefix, ShareListingDetails detailsIncluded, int? maxResults, FileContinuationToken currentToken, FileRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)
Begins an asynchronous request to return a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual ICancellableAsyncResult BeginSetServiceProperties(FileServiceProperties properties, AsyncCallback callback, object state)
Begins an asynchronous operation to set service properties for the File service.
public virtual ICancellableAsyncResult BeginSetServiceProperties(FileServiceProperties properties, FileRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, object state)
Begins an asynchronous operation to set service properties for the File service.
Ends an asynchronous operation to get service properties for the File service.
Ends an asynchronous operation to return a result segment containing a collection of shares.
Ends an asynchronous operation to set service properties for the Blob service.
public virtual FileServiceProperties GetServiceProperties(FileRequestOptions requestOptions = null, OperationContext operationContext = null)
Gets service properties for the File service.
Initiates an asynchronous operation to get service properties for the File service.
public virtual Task<FileServiceProperties> GetServicePropertiesAsync(CancellationToken cancellationToken)
Initiates an asynchronous operation to get service properties for the File service.
public virtual Task<FileServiceProperties> GetServicePropertiesAsync(FileRequestOptions requestOptions, OperationContext operationContext)
Initiates an asynchronous operation to get service properties for the File service.
public virtual Task<FileServiceProperties> GetServicePropertiesAsync(FileRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)
Initiates an asynchronous operation to get service properties for the File service.
Returns a reference to a CloudFileShare object with the specified name.
Returns a reference to a CloudFileShare object with the specified name and snapshot time.
public virtual IEnumerable<CloudFileShare> ListShares(string prefix = null, ShareListingDetails detailsIncluded = 0, FileRequestOptions options = null, OperationContext operationContext = null)
Returns an enumerable collection of shares, which are retrieved lazily, whose names
begin with the specified prefix.
Returns a result segment containing a collection of shares.
public virtual ShareResultSegment ListSharesSegmented(string prefix, FileContinuationToken currentToken)
Returns a result segment containing a collection of shares.
public virtual ShareResultSegment ListSharesSegmented(string prefix, ShareListingDetails detailsIncluded, int? maxResults, FileContinuationToken currentToken, FileRequestOptions options = null, OperationContext operationContext = null)
Returns a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(FileContinuationToken currentToken)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(FileContinuationToken currentToken, CancellationToken cancellationToken)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(string prefix, FileContinuationToken currentToken)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(string prefix, FileContinuationToken currentToken, CancellationToken cancellationToken)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(string prefix, ShareListingDetails detailsIncluded, int? maxResults, FileContinuationToken currentToken, FileRequestOptions options, OperationContext operationContext)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual Task<ShareResultSegment> ListSharesSegmentedAsync(string prefix, ShareListingDetails detailsIncluded, int? maxResults, FileContinuationToken currentToken, FileRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
Returns a task that performs an asynchronous request to return a result segment containing a collection of shares
whose names begin with the specified prefix.
public virtual void SetServiceProperties(FileServiceProperties properties, FileRequestOptions requestOptions = null, OperationContext operationContext = null)
Sets service properties for the File service.
Initiates an asynchronous operation that sets service properties for the Blob service.
public virtual Task SetServicePropertiesAsync(FileServiceProperties properties, CancellationToken cancellationToken)
Initiates an asynchronous operation that sets service properties for the Blob service.
public virtual Task SetServicePropertiesAsync(FileServiceProperties properties, FileRequestOptions requestOptions, OperationContext operationContext)
Initiates an asynchronous operation that sets service properties for the File service.
public virtual Task SetServicePropertiesAsync(FileServiceProperties properties, FileRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)
Initiates an asynchronous operation that sets service properties for the File service.