次の方法で共有


CloudFileDirectory.CreateIfNotExistsAsync メソッド

定義

オーバーロード

CreateIfNotExistsAsync(FileRequestOptions, OperationContext)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

CreateIfNotExistsAsync(FileRequestOptions, OperationContext, CancellationToken)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

CreateIfNotExistsAsync()

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

CreateIfNotExistsAsync(CancellationToken)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

CreateIfNotExistsAsync(FileRequestOptions, OperationContext)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

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

パラメーター

options
FileRequestOptions

要求の追加オプションを指定する FileRequestOptions オブジェクトです。

operationContext
OperationContext

現在の操作のコンテキストを表す OperationContext オブジェクトです。

戻り値

現在の操作を表す Task<TResult> オブジェクトです。

属性

注釈

この API には、作成または書き込みのアクセス許可が必要です。

適用対象

CreateIfNotExistsAsync(FileRequestOptions, OperationContext, CancellationToken)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

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

パラメーター

options
FileRequestOptions

要求の追加オプションを指定する FileRequestOptions オブジェクトです。

operationContext
OperationContext

現在の操作のコンテキストを表す OperationContext オブジェクトです。

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

現在の操作を表す Task<TResult> オブジェクトです。

属性

注釈

この API には、作成または書き込みのアクセス許可が必要です。

適用対象

CreateIfNotExistsAsync()

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

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

戻り値

現在の操作を表す Task<TResult> オブジェクトです。

属性

注釈

この API には、作成または書き込みのアクセス許可が必要です。

適用対象

CreateIfNotExistsAsync(CancellationToken)

ディレクトリがまだ存在しない場合は、ディレクトリを作成するための非同期要求を実行するタスクを返します。

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

パラメーター

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

現在の操作を表す Task<TResult> オブジェクトです。

属性

注釈

この API には、作成または書き込みのアクセス許可が必要です。

適用対象