CloudFileShare.DeleteIfExistsAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
DeleteIfExistsAsync() |
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。 |
DeleteIfExistsAsync(CancellationToken) |
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。 |
DeleteIfExistsAsync(AccessCondition, FileRequestOptions, OperationContext) |
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。 |
DeleteIfExistsAsync(AccessCondition, FileRequestOptions, OperationContext, CancellationToken) |
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。 |
DeleteIfExistsAsync(DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken) |
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。 |
DeleteIfExistsAsync()
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> DeleteIfExistsAsync ();
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExistsAsync : unit -> System.Threading.Tasks.Task<bool>
override this.DeleteIfExistsAsync : unit -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteIfExistsAsync () As Task(Of Boolean)
戻り値
現在の操作を表す Task<TResult> オブジェクトです。
- 属性
適用対象
DeleteIfExistsAsync(CancellationToken)
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> DeleteIfExistsAsync (System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.DeleteIfExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteIfExistsAsync (cancellationToken As CancellationToken) As Task(Of Boolean)
パラメーター
- cancellationToken
- CancellationToken
タスクの完了を待機しているときに監視する CancellationToken。
戻り値
現在の操作を表す Task<TResult> オブジェクトです。
- 属性
適用対象
DeleteIfExistsAsync(AccessCondition, FileRequestOptions, OperationContext)
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> DeleteIfExistsAsync (Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExistsAsync : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
override this.DeleteIfExistsAsync : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteIfExistsAsync (accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext) As Task(Of Boolean)
パラメーター
- accessCondition
- AccessCondition
AccessCondition共有のアクセス条件を表す オブジェクト。 null
の場合、条件は使用されません。
- options
- FileRequestOptions
要求の追加オプションを指定する FileRequestOptions オブジェクトです。
- operationContext
- OperationContext
現在の操作のコンテキストを表す OperationContext オブジェクトです。
戻り値
現在の操作を表す Task<TResult> オブジェクトです。
- 属性
適用対象
DeleteIfExistsAsync(AccessCondition, FileRequestOptions, OperationContext, CancellationToken)
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> DeleteIfExistsAsync (Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExistsAsync : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.DeleteIfExistsAsync : Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteIfExistsAsync (accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of Boolean)
パラメーター
- accessCondition
- AccessCondition
AccessCondition共有のアクセス条件を表す オブジェクト。 null
の場合、条件は使用されません。
- options
- FileRequestOptions
要求の追加オプションを指定する FileRequestOptions オブジェクトです。
- operationContext
- OperationContext
現在の操作のコンテキストを表す OperationContext オブジェクトです。
- cancellationToken
- CancellationToken
タスクの完了を待機しているときに監視する CancellationToken。
戻り値
現在の操作を表す Task<TResult> オブジェクトです。
- 属性
適用対象
DeleteIfExistsAsync(DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)
共有が既に存在する場合に削除する非同期要求を実行するタスクを返します。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<bool> DeleteIfExistsAsync (Microsoft.Azure.Storage.File.DeleteShareSnapshotsOption deleteSnapshotsOption, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member DeleteIfExistsAsync : Microsoft.Azure.Storage.File.DeleteShareSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.DeleteIfExistsAsync : Microsoft.Azure.Storage.File.DeleteShareSnapshotsOption * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function DeleteIfExistsAsync (deleteSnapshotsOption As DeleteShareSnapshotsOption, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of Boolean)
パラメーター
- deleteSnapshotsOption
- DeleteShareSnapshotsOption
DeleteShareSnapshotsOption共有のみを削除するか、共有とすべてのスナップショットを削除するかを示す オブジェクト。
- accessCondition
- AccessCondition
AccessCondition共有のアクセス条件を表す オブジェクト。 null
の場合、条件は使用されません。
- options
- FileRequestOptions
要求の追加オプションを指定する FileRequestOptions オブジェクトです。
- operationContext
- OperationContext
現在の操作のコンテキストを表す OperationContext オブジェクトです。
- cancellationToken
- CancellationToken
タスクの完了を待機しているときに監視する CancellationToken。
戻り値
現在の操作を表す Task<TResult> オブジェクトです。
- 属性
適用対象
Azure SDK for .NET