ServiceBusModelFactory.TopicRuntimeProperties 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 TopicRuntimeProperties(String, Int64, Int64, Int32, DateTimeOffset, DateTimeOffset, DateTimeOffset) instance for mocking.
public static Azure.Messaging.ServiceBus.Administration.TopicRuntimeProperties TopicRuntimeProperties (string name, long scheduledMessageCount = 0, long sizeInBytes = 0, int subscriptionCount = 0, DateTimeOffset createdAt = default, DateTimeOffset updatedAt = default, DateTimeOffset accessedAt = default);
static member TopicRuntimeProperties : string * int64 * int64 * int * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.Messaging.ServiceBus.Administration.TopicRuntimeProperties
Public Shared Function TopicRuntimeProperties (name As String, Optional scheduledMessageCount As Long = 0, Optional sizeInBytes As Long = 0, Optional subscriptionCount As Integer = 0, Optional createdAt As DateTimeOffset = Nothing, Optional updatedAt As DateTimeOffset = Nothing, Optional accessedAt As DateTimeOffset = Nothing) As TopicRuntimeProperties
Parameters
- scheduledMessageCount
- Int64
The count to assign as the value of ScheduledMessageCount.
- sizeInBytes
- Int64
The size to assign as the value of SizeInBytes.
- subscriptionCount
- Int32
The count to assign as the value of SubscriptionCount.
- 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 TopicRuntimeProperties(String, Int64, Int64, Int32, DateTimeOffset, DateTimeOffset, DateTimeOffset) instance to use for mocking.
Applies to
Azure SDK for .NET