Dela via


IStorageFileManagement.FetchFileAttributesAsync Method

Definition

Overloads

FetchFileAttributesAsync(CloudFile, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to retrieve the file's attributes.

FetchFileAttributesAsync(CloudFile, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

FetchFileAttributesAsync(CloudFile, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to retrieve the file's attributes.

public System.Threading.Tasks.Task FetchFileAttributesAsync (Microsoft.Azure.Storage.File.CloudFile file, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken token);
abstract member FetchFileAttributesAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function FetchFileAttributesAsync (file As CloudFile, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, token As CancellationToken) As Task

Parameters

file
CloudFile

Indicating the file.

accessCondition
AccessCondition

A Microsoft.WindowsAzure.Storage.AccessCondition object that represents the access conditions for the share. If null, no condition is used.

options
FileRequestOptions

A Microsoft.Azure.Storage.File.FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

A Microsoft.WindowsAzure.Storage.OperationContext object that represents the context for the current operation.

token
CancellationToken

A System.Threading.CancellationToken to observe while waiting for a task to complete.

Returns

A System.Threading.Tasks.Task object that represents the current operation.

Applies to

FetchFileAttributesAsync(CloudFile, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

public System.Threading.Tasks.Task FetchFileAttributesAsync (Microsoft.WindowsAzure.Storage.File.CloudFile file, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.File.FileRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken token);
abstract member FetchFileAttributesAsync : Microsoft.WindowsAzure.Storage.File.CloudFile * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.File.FileRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function FetchFileAttributesAsync (file As CloudFile, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, token As CancellationToken) As Task

Parameters

file
CloudFile
accessCondition
AccessCondition
operationContext
OperationContext

Returns

Applies to