共用方式為


CloudFileDirectory.CreateAsync Method

Definition

Overloads

CreateAsync()

Returns a task that performs an asynchronous operation to create a directory.

CreateAsync(CancellationToken)

Returns a task that performs an asynchronous operation to create a directory.

CreateAsync(FileRequestOptions, OperationContext)

Returns a task that performs an asynchronous operation to create a directory.

CreateAsync(FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to create a directory.

CreateAsync()

Returns a task that performs an asynchronous operation to create a directory.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync ();
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateAsync : unit -> System.Threading.Tasks.Task
override this.CreateAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync () As Task

Returns

A Task object that represents the current operation.

Attributes

Applies to

CreateAsync(CancellationToken)

Returns a task that performs an asynchronous operation to create a directory.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

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

Returns

A Task object that represents the current operation.

Attributes

Applies to

CreateAsync(FileRequestOptions, OperationContext)

Returns a task that performs an asynchronous operation to create a directory.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateAsync : Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (options As FileRequestOptions, operationContext As OperationContext) As Task

Parameters

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

A Task object that represents the current operation.

Attributes

Applies to

CreateAsync(FileRequestOptions, OperationContext, CancellationToken)

Returns a task that performs an asynchronous operation to create a directory.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateAsync : Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task

Parameters

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken

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

Returns

A Task object that represents the current operation.

Attributes

Applies to