Share via


ServiceBusModelFactory.QueueProperties Method

Definition

Creates a new QueueProperties instance for mocking.

public static Azure.Messaging.ServiceBus.Administration.QueueProperties QueueProperties (string name, TimeSpan lockDuration, long maxSizeInMegabytes, bool requiresDuplicateDetection, bool requiresSession, TimeSpan defaultMessageTimeToLive, TimeSpan autoDeleteOnIdle, bool deadLetteringOnMessageExpiration, TimeSpan duplicateDetectionHistoryTimeWindow, int maxDeliveryCount, bool enableBatchedOperations, Azure.Messaging.ServiceBus.Administration.EntityStatus status, string forwardTo, string forwardDeadLetteredMessagesTo, string userMetadata, bool enablePartitioning);
static member QueueProperties : string * TimeSpan * int64 * bool * bool * TimeSpan * TimeSpan * bool * TimeSpan * int * bool * Azure.Messaging.ServiceBus.Administration.EntityStatus * string * string * string * bool -> Azure.Messaging.ServiceBus.Administration.QueueProperties
Public Shared Function QueueProperties (name As String, lockDuration As TimeSpan, maxSizeInMegabytes As Long, requiresDuplicateDetection As Boolean, requiresSession As Boolean, defaultMessageTimeToLive As TimeSpan, autoDeleteOnIdle As TimeSpan, deadLetteringOnMessageExpiration As Boolean, duplicateDetectionHistoryTimeWindow As TimeSpan, maxDeliveryCount As Integer, enableBatchedOperations As Boolean, status As EntityStatus, forwardTo As String, forwardDeadLetteredMessagesTo As String, userMetadata As String, enablePartitioning As Boolean) As QueueProperties

Parameters

name
String

The name to assign as the value of Name.

lockDuration
TimeSpan

The duration to assign as the value of LockDuration.

maxSizeInMegabytes
Int64

The size to assign as the value of MaxSizeInMegabytes.

requiresDuplicateDetection
Boolean

The boolean flag to assign as the value of RequiresDuplicateDetection.

requiresSession
Boolean

The boolean flag to assign as the value of RequiresSession.

defaultMessageTimeToLive
TimeSpan

The time interval to assign as the value of DefaultMessageTimeToLive.

autoDeleteOnIdle
TimeSpan

The boolean flag to assign as the value of AutoDeleteOnIdle.

deadLetteringOnMessageExpiration
Boolean

The boolean flag to assign as the value of DeadLetteringOnMessageExpiration.

duplicateDetectionHistoryTimeWindow
TimeSpan

The time interval to assign as the value of DuplicateDetectionHistoryTimeWindow.

maxDeliveryCount
Int32

The count to assign as the value of MaxDeliveryCount.

enableBatchedOperations
Boolean

The boolean flag to assign as the value of EnableBatchedOperations.

status
EntityStatus

The status to assign as the value of Status.

forwardTo
String

The name of the "forward to" entity to assign as the value of ForwardTo.

forwardDeadLetteredMessagesTo
String

The name of the "forward to" entity to assign as the value of ForwardDeadLetteredMessagesTo.

userMetadata
String

The metadata to assign as the value of UserMetadata.

enablePartitioning
Boolean

The boolean flag to assign as the value of EnablePartitioning.

Returns

The populated QueueProperties instance to use for mocking.

Applies to