Share via


ServiceBusModelFactory.TopicProperties Method

Definition

Creates a new TopicProperties instance for mocking.

public static Azure.Messaging.ServiceBus.Administration.TopicProperties TopicProperties (string name, long maxSizeInMegabytes = 0, bool requiresDuplicateDetection = false, TimeSpan defaultMessageTimeToLive = default, TimeSpan autoDeleteOnIdle = default, TimeSpan duplicateDetectionHistoryTimeWindow = default, bool enableBatchedOperations = false, Azure.Messaging.ServiceBus.Administration.EntityStatus status = default, bool enablePartitioning = false, long maxMessageSizeInKilobytes = 0);
static member TopicProperties : string * int64 * bool * TimeSpan * TimeSpan * TimeSpan * bool * Azure.Messaging.ServiceBus.Administration.EntityStatus * bool * int64 -> Azure.Messaging.ServiceBus.Administration.TopicProperties
Public Shared Function TopicProperties (name As String, Optional maxSizeInMegabytes As Long = 0, Optional requiresDuplicateDetection As Boolean = false, Optional defaultMessageTimeToLive As TimeSpan = Nothing, Optional autoDeleteOnIdle As TimeSpan = Nothing, Optional duplicateDetectionHistoryTimeWindow As TimeSpan = Nothing, Optional enableBatchedOperations As Boolean = false, Optional status As EntityStatus = Nothing, Optional enablePartitioning As Boolean = false, Optional maxMessageSizeInKilobytes As Long = 0) As TopicProperties

Parameters

name
String

The name to assign as the value of Name.

maxSizeInMegabytes
Int64

The size to assign as the value of MaxSizeInMegabytes.

requiresDuplicateDetection
Boolean

The boolean flag to assign as the value of RequiresDuplicateDetection.

defaultMessageTimeToLive
TimeSpan

The time to live to assign as the value of DefaultMessageTimeToLive.

autoDeleteOnIdle
TimeSpan

The time interval to assign as the value of AutoDeleteOnIdle.

duplicateDetectionHistoryTimeWindow
TimeSpan

The time interval to assign as the value of DuplicateDetectionHistoryTimeWindow.

enableBatchedOperations
Boolean

The boolean flag to assign as the value of EnableBatchedOperations.

status
EntityStatus

The status to assign as the value of Status.

enablePartitioning
Boolean

The boolean flag to assign as the value of EnablePartitioning.

maxMessageSizeInKilobytes
Int64

The message size to assign as the value of MaxMessageSizeInKilobytes.

Returns

The populated TopicProperties instance to use for mocking.

Applies to