你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SBSubscription 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
资源所在的地理位置
- countDetails
- MessageCountDetails
消息计数详细信息
ISO 8061 默认消息时间跨度到实时值。 这是消息过期的持续时间,从消息发送到服务总线时开始。 这是未在消息本身上设置 TimeToLive 时使用的默认值。
定义重复检测历史记录持续时间的 ISO 8601 timeSpan 结构。 默认值为 10 分钟。
- status
- Nullable<EntityStatus>
枚举消息实体状态的可能值。 可能的值包括:“Active”、“Disabled”、“Restoring”、“SendDisabled”、“ReceiveDisabled”、“Creating”、“Deleting”、“Renaming”、“Unknown”
- forwardTo
- String
用于转发消息的队列/主题名称
- forwardDeadLetteredMessagesTo
- String
用于转发死信消息的队列/主题名称
- clientAffineProperties
- SBClientAffineProperties
特定于客户端仿射订阅的属性。
- systemData
- SystemData
与此资源相关的系统元数据。