Sdílet prostřednictvím


ServiceBusModelFactory.TopicRuntimeProperties Method

Definition

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

name
String

The name to assign as the value of Name.

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