Partager via


CosmosDatabase.DeleteStreamAsync(RequestOptions, CancellationToken) Méthode

Définition

Supprimez un DatabaseProperties du service Azure Cosmos DB en tant qu’opération asynchrone.

public abstract System.Threading.Tasks.Task<Azure.Response> DeleteStreamAsync (Azure.Cosmos.RequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteStreamAsync : Azure.Cosmos.RequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public MustOverride Function DeleteStreamAsync (Optional requestOptions As RequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Paramètres

requestOptions
RequestOptions

(Facultatif) Options de la demande de conteneur RequestOptions

cancellationToken
CancellationToken

(Facultatif) CancellationToken représentant l’annulation de la demande.

Retours

Task contenant un qui contiendra des Response informations sur la demande émise.

Exemples

//Delete a Database resource where
// - database_id is the ID property of the Database resource you wish to delete.
Database database = this.cosmosClient.GetDatabase(database_id);
await database.DeleteStreamAsync();

S’applique à