IStorageFileManagement.DeleteShareAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeleteShareAsync(CloudFileShare, DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken) |
Returns a task that performs an asynchronous operation to delete a share. |
DeleteShareAsync(CloudFileShare, DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken) |
DeleteShareAsync(CloudFileShare, DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)
Returns a task that performs an asynchronous operation to delete a share.
public System.Threading.Tasks.Task DeleteShareAsync (Microsoft.Azure.Storage.File.CloudFileShare share, Microsoft.Azure.Storage.File.DeleteShareSnapshotsOption deleteShareSnapshotsOption, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member DeleteShareAsync : Microsoft.Azure.Storage.File.CloudFileShare * 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
Public Function DeleteShareAsync (share As CloudFileShare, deleteShareSnapshotsOption As DeleteShareSnapshotsOption, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task
Parameters
- share
- CloudFileShare
Indicating the reference of the share to be deleted.
- deleteShareSnapshotsOption
- DeleteShareSnapshotsOption
- 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.
- cancellationToken
- 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
DeleteShareAsync(CloudFileShare, DeleteShareSnapshotsOption, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)
public System.Threading.Tasks.Task DeleteShareAsync (Microsoft.WindowsAzure.Storage.File.CloudFileShare share, Microsoft.WindowsAzure.Storage.File.DeleteShareSnapshotsOption deleteShareSnapshotsOption, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.File.FileRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member DeleteShareAsync : Microsoft.WindowsAzure.Storage.File.CloudFileShare * Microsoft.WindowsAzure.Storage.File.DeleteShareSnapshotsOption * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.File.FileRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteShareAsync (share As CloudFileShare, deleteShareSnapshotsOption As DeleteShareSnapshotsOption, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task
Parameters
- share
- CloudFileShare
- deleteShareSnapshotsOption
- DeleteShareSnapshotsOption
- accessCondition
- AccessCondition
- options
- FileRequestOptions
- operationContext
- OperationContext
- cancellationToken
- CancellationToken