你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SBSubscription 构造函数

定义

重载

SBSubscription()

初始化 SBSubscription 类的新实例。

SBSubscription(String, String, String, String, Nullable<Int64>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, MessageCountDetails, Nullable<TimeSpan>, Nullable<Boolean>, Nullable<TimeSpan>, Nullable<Boolean>, Nullable<Boolean>, Nullable<TimeSpan>, Nullable<Int32>, Nullable<EntityStatus>, Nullable<Boolean>, Nullable<TimeSpan>, String, String, Nullable<Boolean>, SBClientAffineProperties, SystemData)

初始化 SBSubscription 类的新实例。

SBSubscription()

初始化 SBSubscription 类的新实例。

public SBSubscription ();
Public Sub New ()

适用于

SBSubscription(String, String, String, String, Nullable<Int64>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, MessageCountDetails, Nullable<TimeSpan>, Nullable<Boolean>, Nullable<TimeSpan>, Nullable<Boolean>, Nullable<Boolean>, Nullable<TimeSpan>, Nullable<Int32>, Nullable<EntityStatus>, Nullable<Boolean>, Nullable<TimeSpan>, String, String, Nullable<Boolean>, SBClientAffineProperties, SystemData)

初始化 SBSubscription 类的新实例。

public SBSubscription (string id = default, string name = default, string type = default, string location = default, long? messageCount = default, DateTime? createdAt = default, DateTime? accessedAt = default, DateTime? updatedAt = default, Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails countDetails = default, TimeSpan? lockDuration = default, bool? requiresSession = default, TimeSpan? defaultMessageTimeToLive = default, bool? deadLetteringOnFilterEvaluationExceptions = default, bool? deadLetteringOnMessageExpiration = default, TimeSpan? duplicateDetectionHistoryTimeWindow = default, int? maxDeliveryCount = default, Microsoft.Azure.Management.ServiceBus.Models.EntityStatus? status = default, bool? enableBatchedOperations = default, TimeSpan? autoDeleteOnIdle = default, string forwardTo = default, string forwardDeadLetteredMessagesTo = default, bool? isClientAffine = default, Microsoft.Azure.Management.ServiceBus.Models.SBClientAffineProperties clientAffineProperties = default, Microsoft.Azure.Management.ServiceBus.Models.SystemData systemData = default);
new Microsoft.Azure.Management.ServiceBus.Models.SBSubscription : string * string * string * string * Nullable<int64> * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails * Nullable<TimeSpan> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<bool> * Nullable<TimeSpan> * Nullable<int> * Nullable<Microsoft.Azure.Management.ServiceBus.Models.EntityStatus> * Nullable<bool> * Nullable<TimeSpan> * string * string * Nullable<bool> * Microsoft.Azure.Management.ServiceBus.Models.SBClientAffineProperties * Microsoft.Azure.Management.ServiceBus.Models.SystemData -> Microsoft.Azure.Management.ServiceBus.Models.SBSubscription
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional messageCount As Nullable(Of Long) = Nothing, Optional createdAt As Nullable(Of DateTime) = Nothing, Optional accessedAt As Nullable(Of DateTime) = Nothing, Optional updatedAt As Nullable(Of DateTime) = Nothing, Optional countDetails As MessageCountDetails = Nothing, Optional lockDuration As Nullable(Of TimeSpan) = Nothing, Optional requiresSession As Nullable(Of Boolean) = Nothing, Optional defaultMessageTimeToLive As Nullable(Of TimeSpan) = Nothing, Optional deadLetteringOnFilterEvaluationExceptions As Nullable(Of Boolean) = Nothing, Optional deadLetteringOnMessageExpiration As Nullable(Of Boolean) = Nothing, Optional duplicateDetectionHistoryTimeWindow As Nullable(Of TimeSpan) = Nothing, Optional maxDeliveryCount As Nullable(Of Integer) = Nothing, Optional status As Nullable(Of EntityStatus) = Nothing, Optional enableBatchedOperations As Nullable(Of Boolean) = Nothing, Optional autoDeleteOnIdle As Nullable(Of TimeSpan) = Nothing, Optional forwardTo As String = Nothing, Optional forwardDeadLetteredMessagesTo As String = Nothing, Optional isClientAffine As Nullable(Of Boolean) = Nothing, Optional clientAffineProperties As SBClientAffineProperties = Nothing, Optional systemData As SystemData = Nothing)

参数

id
String

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

资源的名称

type
String

资源类型。 例如“Microsoft.EventHub/Namespaces”或“Microsoft.EventHub/Namespaces/EventHubs”

location
String

资源所在的地理位置

messageCount
Nullable<Int64>

消息数。

createdAt
Nullable<DateTime>

创建消息的确切时间。

accessedAt
Nullable<DateTime>

上次收到此订阅的接收请求时。

updatedAt
Nullable<DateTime>

更新消息的确切时间。

countDetails
MessageCountDetails

消息计数详细信息

lockDuration
Nullable<TimeSpan>

订阅的 ISO 8061 锁定持续时间时间跨度。 默认值为 1 分钟。

requiresSession
Nullable<Boolean>

指示订阅是否支持会话概念的值。

defaultMessageTimeToLive
Nullable<TimeSpan>

ISO 8061 默认消息时间跨度到实时值。 这是消息过期的持续时间,从消息发送到服务总线时开始。 这是未在消息本身上设置 TimeToLive 时使用的默认值。

deadLetteringOnFilterEvaluationExceptions
Nullable<Boolean>

指示订阅是否具有筛选器评估异常的死信支持的值。

deadLetteringOnMessageExpiration
Nullable<Boolean>

指示消息过期时订阅是否具有死信支持的值。

duplicateDetectionHistoryTimeWindow
Nullable<TimeSpan>

定义重复检测历史记录持续时间的 ISO 8601 timeSpan 结构。 默认值为 10 分钟。

maxDeliveryCount
Nullable<Int32>

最大交付次数。

status
Nullable<EntityStatus>

枚举消息实体状态的可能值。 可能的值包括:“Active”、“Disabled”、“Restoring”、“SendDisabled”、“ReceiveDisabled”、“Creating”、“Deleting”、“Renaming”、“Unknown”

enableBatchedOperations
Nullable<Boolean>

指示是否启用服务器端批处理操作的值。

autoDeleteOnIdle
Nullable<TimeSpan>

ISO 8061 timeSpan 空闲间隔,在此间隔后将自动删除主题。 最短持续时间为 5 分钟。

forwardTo
String

用于转发消息的队列/主题名称

forwardDeadLetteredMessagesTo
String

用于转发死信消息的队列/主题名称

isClientAffine
Nullable<Boolean>

指示订阅是否与客户端 ID 关联的值。

clientAffineProperties
SBClientAffineProperties

特定于客户端仿射订阅的属性。

systemData
SystemData

与此资源相关的系统元数据。

适用于