你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmServiceBusModelFactory.ServiceBusTopicData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ServiceBusTopicData 的新实例。
public static Azure.ResourceManager.ServiceBus.ServiceBusTopicData ServiceBusTopicData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, long? sizeInBytes = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, DateTimeOffset? accessedOn = default, int? subscriptionCount = default, Azure.ResourceManager.ServiceBus.Models.MessageCountDetails countDetails = default, TimeSpan? defaultMessageTimeToLive = default, int? maxSizeInMegabytes = default, long? maxMessageSizeInKilobytes = default, bool? requiresDuplicateDetection = default, TimeSpan? duplicateDetectionHistoryTimeWindow = default, bool? enableBatchedOperations = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus? status = default, bool? supportOrdering = default, TimeSpan? autoDeleteOnIdle = default, bool? enablePartitioning = default, bool? enableExpress = default, Azure.Core.AzureLocation? location = default);
static member ServiceBusTopicData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<int64> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int> * Azure.ResourceManager.ServiceBus.Models.MessageCountDetails * Nullable<TimeSpan> * Nullable<int> * Nullable<int64> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<Azure.ResourceManager.ServiceBus.Models.ServiceBusMessagingEntityStatus> * Nullable<bool> * Nullable<TimeSpan> * Nullable<bool> * Nullable<bool> * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.ServiceBus.ServiceBusTopicData
Public Shared Function ServiceBusTopicData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional sizeInBytes As Nullable(Of Long) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional accessedOn As Nullable(Of DateTimeOffset) = Nothing, Optional subscriptionCount As Nullable(Of Integer) = Nothing, Optional countDetails As MessageCountDetails = Nothing, Optional defaultMessageTimeToLive As Nullable(Of TimeSpan) = Nothing, Optional maxSizeInMegabytes As Nullable(Of Integer) = Nothing, Optional maxMessageSizeInKilobytes As Nullable(Of Long) = Nothing, Optional requiresDuplicateDetection As Nullable(Of Boolean) = Nothing, Optional duplicateDetectionHistoryTimeWindow As Nullable(Of TimeSpan) = Nothing, Optional enableBatchedOperations As Nullable(Of Boolean) = Nothing, Optional status As Nullable(Of ServiceBusMessagingEntityStatus) = Nothing, Optional supportOrdering As Nullable(Of Boolean) = Nothing, Optional autoDeleteOnIdle As Nullable(Of TimeSpan) = Nothing, Optional enablePartitioning As Nullable(Of Boolean) = Nothing, Optional enableExpress As Nullable(Of Boolean) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As ServiceBusTopicData
参数
ID。
- name
- String
名称。
- resourceType
- ResourceType
resourceType。
- systemData
- SystemData
systemData。
- createdOn
- Nullable<DateTimeOffset>
消息的确切创建时间。
- updatedOn
- Nullable<DateTimeOffset>
消息的确切更新时间。
- accessedOn
- Nullable<DateTimeOffset>
上一次发送此主题的消息或收到请求的时间。
- countDetails
- MessageCountDetails
消息计数详细信息。
ISO 8601 默认消息时间跨度到实时值。 这是消息过期的持续时间,从消息发送到服务总线时开始。 这是未在消息本身上设置 TimeToLive 时使用的默认值。
ISO8601 时间跨度结构,用于定义重复检测历史记录的持续时间。 默认值为 10 分钟。
枚举消息实体状态的可能值。
- location
- Nullable<AzureLocation>
资源所在的地理位置。
返回
用于模拟的新 ServiceBusTopicData 实例。