QueueClient.CreateIfNotExistsAsync Méthode

Définition

L’opération CreateIfNotExistsAsync(IDictionary<String,String>, CancellationToken) crée une file d’attente sous le compte spécifié. Si la file d’attente existe déjà, elle n’est pas modifiée.

Pour plus d'informations, consultez la rubrique Créer une file d’attente.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateIfNotExistsAsync (System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIfNotExistsAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateIfNotExistsAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateIfNotExistsAsync (Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Paramètres

metadata
IDictionary<String,String>

Métadonnées personnalisées facultatives à définir pour cette file d’attente.

cancellationToken
CancellationToken

Facultatif CancellationToken pour propager des notifications indiquant que l’opération doit être annulée.

Retours

Si la file d’attente n’existe pas encore, une Response description de la file d’attente nouvellement créée. Si la file d’attente existe déjà, null.

Remarques

Un RequestFailedException sera levée en cas d’échec.

S’applique à