Share via


QueuesModelFactory.PeekedMessage Method

Definition

Creates a new PeekedMessage instance for mocking.

public static Azure.Storage.Queues.Models.PeekedMessage PeekedMessage (string messageId, BinaryData message, long dequeueCount, DateTimeOffset? insertedOn = default, DateTimeOffset? expiresOn = default);
static member PeekedMessage : string * BinaryData * int64 * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.Storage.Queues.Models.PeekedMessage
Public Shared Function PeekedMessage (messageId As String, message As BinaryData, dequeueCount As Long, Optional insertedOn As Nullable(Of DateTimeOffset) = Nothing, Optional expiresOn As Nullable(Of DateTimeOffset) = Nothing) As PeekedMessage

Parameters

messageId
String
message
BinaryData
dequeueCount
Int64
insertedOn
Nullable<DateTimeOffset>

Returns

Applies to