Freigeben über


CloudQueue.GetMessageAsync Methode

Definition

Überlädt

GetMessageAsync()

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen.

GetMessageAsync(CancellationToken)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen.

GetMessageAsync(Nullable<TimeSpan>, QueueRequestOptions, OperationContext)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen, und gibt an, wie lange die Nachricht reserviert werden soll, bevor sie sichtbar wird und daher zum Löschen verfügbar ist.

GetMessageAsync(Nullable<TimeSpan>, QueueRequestOptions, OperationContext, CancellationToken)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen, und gibt an, wie lange die Nachricht reserviert werden soll, bevor sie sichtbar wird und daher zum Löschen verfügbar ist.

GetMessageAsync()

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen.

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

Gibt zurück

Ein Task<TResult>-Objekt vom Typ CloudQueueMessage, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

GetMessageAsync(CancellationToken)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen.

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

Parameter

cancellationToken
CancellationToken

Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.

Gibt zurück

Ein Task<TResult>-Objekt vom Typ CloudQueueMessage, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

GetMessageAsync(Nullable<TimeSpan>, QueueRequestOptions, OperationContext)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen, und gibt an, wie lange die Nachricht reserviert werden soll, bevor sie sichtbar wird und daher zum Löschen verfügbar ist.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage> GetMessageAsync (TimeSpan? visibilityTimeout, Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetMessageAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage>
override this.GetMessageAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage>
Public Overridable Function GetMessageAsync (visibilityTimeout As Nullable(Of TimeSpan), options As QueueRequestOptions, operationContext As OperationContext) As Task(Of CloudQueueMessage)

Parameter

visibilityTimeout
Nullable<TimeSpan>

Ein TimeSpan , der das Sichtbarkeitstimeoutintervall angibt.

options
QueueRequestOptions

Ein QueueRequestOptions-Objekt, das zusätzliche Optionen für die Anforderung angibt.

operationContext
OperationContext

Ein OperationContext-Objekt, das den Kontext für den aktuellen Vorgang darstellt.

Gibt zurück

Ein Task<TResult>-Objekt vom Typ CloudQueueMessage, das den asynchronen Vorgang darstellt.

Attribute

Gilt für:

GetMessageAsync(Nullable<TimeSpan>, QueueRequestOptions, OperationContext, CancellationToken)

Initiiert einen asynchronen Vorgang, um eine einzelne Nachricht aus der Warteschlange abzurufen, und gibt an, wie lange die Nachricht reserviert werden soll, bevor sie sichtbar wird und daher zum Löschen verfügbar ist.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage> GetMessageAsync (TimeSpan? visibilityTimeout, Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetMessageAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage>
override this.GetMessageAsync : Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Queue.CloudQueueMessage>
Public Overridable Function GetMessageAsync (visibilityTimeout As Nullable(Of TimeSpan), options As QueueRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of CloudQueueMessage)

Parameter

visibilityTimeout
Nullable<TimeSpan>

Ein TimeSpan , der das Sichtbarkeitstimeoutintervall angibt.

options
QueueRequestOptions

Ein QueueRequestOptions-Objekt, das zusätzliche Optionen für die Anforderung angibt.

operationContext
OperationContext

Ein OperationContext-Objekt, das den Kontext für den aktuellen Vorgang darstellt.

cancellationToken
CancellationToken

Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.

Gibt zurück

Ein Task<TResult>-Objekt vom Typ CloudQueueMessage, das den asynchronen Vorgang darstellt.

Attribute

Gilt für: