ServiceBusModelFactory.QueueRuntimeProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new QueueRuntimeProperties(String, Int64, Int64, Int64, Int64, Int64, Int64, Int64, DateTimeOffset, DateTimeOffset, DateTimeOffset) instance for mocking.
public static Azure.Messaging.ServiceBus.Administration.QueueRuntimeProperties QueueRuntimeProperties (string name, long activeMessageCount = 0, long scheduledMessageCount = 0, long deadLetterMessageCount = 0, long transferDeadLetterMessageCount = 0, long transferMessageCount = 0, long totalMessageCount = 0, long sizeInBytes = 0, DateTimeOffset createdAt = default, DateTimeOffset updatedAt = default, DateTimeOffset accessedAt = default);
static member QueueRuntimeProperties : string * int64 * int64 * int64 * int64 * int64 * int64 * int64 * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.Messaging.ServiceBus.Administration.QueueRuntimeProperties
Public Shared Function QueueRuntimeProperties (name As String, Optional activeMessageCount As Long = 0, Optional scheduledMessageCount As Long = 0, Optional deadLetterMessageCount As Long = 0, Optional transferDeadLetterMessageCount As Long = 0, Optional transferMessageCount As Long = 0, Optional totalMessageCount As Long = 0, Optional sizeInBytes As Long = 0, Optional createdAt As DateTimeOffset = Nothing, Optional updatedAt As DateTimeOffset = Nothing, Optional accessedAt As DateTimeOffset = Nothing) As QueueRuntimeProperties
Parameters
- activeMessageCount
- Int64
The count to assign as the value of ActiveMessageCount.
- scheduledMessageCount
- Int64
The count to assign as the value of ScheduledMessageCount.
- deadLetterMessageCount
- Int64
The count to assign as the value of DeadLetterMessageCount.
- transferDeadLetterMessageCount
- Int64
The count to assign as the value of TransferDeadLetterMessageCount.
- transferMessageCount
- Int64
The count to assign as the value of TransferMessageCount.
- totalMessageCount
- Int64
The count to assign as the value of TotalMessageCount.
- sizeInBytes
- Int64
The size to assign as the value of SizeInBytes.
- createdAt
- DateTimeOffset
The time stamp to assign as the value of CreatedAt.
- updatedAt
- DateTimeOffset
The time stamp to assign as the value of UpdatedAt.
- accessedAt
- DateTimeOffset
The time stamp to assign as the value of AccessedAt.
Returns
The populated QueueRuntimeProperties instance to use for mocking.
Applies to
Azure SDK for .NET