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

IWithCreate 接口

定义

定义的阶段,该阶段包含通过 WithCreate.create () ) (创建的资源所需的全部最低输入,但也允许指定任何其他可选设置。

public interface IWithCreate : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.ServiceBus.Fluent.IQueue>, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithAuthorizationRule, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithDefaultMessageTTL, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithDeleteOnIdle, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithDuplicateMessageDetection, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithExpiredMessageMovedToDeadLetterQueue, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithExpressMessage, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithMessageBatching, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithMessageLockDuration, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithMessageMovedToDeadLetterQueueOnMaxDeliveryCount, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithPartitioning, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithSession, Microsoft.Azure.Management.ServiceBus.Fluent.Queue.Definition.IWithSize
type IWithCreate = interface
    interface ICreatable<IQueue>
    interface IIndexable
    interface IWithSize
    interface IWithPartitioning
    interface IWithDeleteOnIdle
    interface IWithMessageLockDuration
    interface IWithDefaultMessageTTL
    interface IWithSession
    interface IWithExpressMessage
    interface IWithMessageBatching
    interface IWithDuplicateMessageDetection
    interface IWithExpiredMessageMovedToDeadLetterQueue
    interface IWithMessageMovedToDeadLetterQueueOnMaxDeliveryCount
    interface IWithAuthorizationRule
Public Interface IWithCreate
Implements ICreatable(Of IQueue), IWithAuthorizationRule, IWithDefaultMessageTTL, IWithDeleteOnIdle, IWithDuplicateMessageDetection, IWithExpiredMessageMovedToDeadLetterQueue, IWithExpressMessage, IWithMessageBatching, IWithMessageLockDuration, IWithMessageMovedToDeadLetterQueueOnMaxDeliveryCount, IWithPartitioning, IWithSession, IWithSize
派生
实现

属性

Key

定义的阶段,该阶段包含通过 WithCreate.create () ) (创建的资源所需的全部最低输入,但也允许指定任何其他可选设置。

(继承自 IIndexable)
Name

获取可创建资源的名称。

(继承自 ICreatable<T>)

方法

Create()

执行创建请求。

(继承自 ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

将请求放入队列,并允许 HTTP 客户端在系统资源可用时执行该请求。

(继承自 ICreatable<T>)
WithDefaultMessageTTL(TimeSpan)

指定消息过期的持续时间。 注意:除非显式重写,否则默认 ttl 为无限 (TimeSpan.Max) 。

(继承自 IWithDefaultMessageTTL)
WithDeleteOnIdleDurationInMinutes(Int32)

自动删除队列之后的空闲间隔。 注意:除非显式重写,否则空闲持续时间的默认删除是无限 (TimeSpan.Max) 。

(继承自 IWithDeleteOnIdle)
WithDuplicateMessageDetection(TimeSpan)

指定重复消息检测历史记录的持续时间。

(继承自 IWithDuplicateMessageDetection)
WithExpiredMessageMovedToDeadLetterQueue()

指定必须将过期消息移动到死信队列。

(继承自 IWithExpiredMessageMovedToDeadLetterQueue)
WithExpressMessage()

指定此队列中的消息是快速的,因此可以在内存中缓存一段时间,然后再将其存储在消息存储中。 注意:默认情况下,队列不是快速队列。

(继承自 IWithExpressMessage)
WithMessageLockDurationInSeconds(Int32)

指定其他接收方锁定消息的时间量。 注意:除非显式重写默认锁定持续时间为 60 秒,否则允许的最大值为 300 秒。

(继承自 IWithMessageLockDuration)
WithMessageMovedToDeadLetterQueueOnMaxDeliveryCount(Int32)

指定可以传递消息的最大次数。 超过此计数后,消息将移动到死信队列。

(继承自 IWithMessageMovedToDeadLetterQueueOnMaxDeliveryCount)
WithNewListenRule(String)

为队列创建侦听授权规则。

(继承自 IWithAuthorizationRule)
WithNewManageRule(String)

为队列创建管理授权规则。

(继承自 IWithAuthorizationRule)
WithNewSendRule(String)

为队列创建发送授权规则。

(继承自 IWithAuthorizationRule)
WithoutMessageBatching()

指定应在此队列上禁用默认批处理。 使用批处理,服务总线可以在写入或删除内部存储中的消息时批处理多条消息。

(继承自 IWithMessageBatching)
WithoutPartitioning()

指定应在此队列上禁用默认分区。 注意:如果父服务总线是高级 SKU,则无法禁用分区。

(继承自 IWithPartitioning)
WithPartitioning()

指定应在此队列上启用分区。

(继承自 IWithPartitioning)
WithSession()

指定应为队列启用会话支持。

(继承自 IWithSession)
WithSizeInMB(Int64)

指定为队列分配的最大内存大小。

(继承自 IWithSize)

适用于