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

MessageSender.ScheduleMessageAsync(Message, DateTimeOffset) Method

Definition

Schedules a message to appear on Service Bus at a later time.

public System.Threading.Tasks.Task<long> ScheduleMessageAsync(Microsoft.Azure.ServiceBus.Message message, DateTimeOffset scheduleEnqueueTimeUtc);
abstract member ScheduleMessageAsync : Microsoft.Azure.ServiceBus.Message * DateTimeOffset -> System.Threading.Tasks.Task<int64>
override this.ScheduleMessageAsync : Microsoft.Azure.ServiceBus.Message * DateTimeOffset -> System.Threading.Tasks.Task<int64>
Public Function ScheduleMessageAsync (message As Message, scheduleEnqueueTimeUtc As DateTimeOffset) As Task(Of Long)

Parameters

message
Message

The Message that needs to be scheduled.

scheduleEnqueueTimeUtc
DateTimeOffset

The UTC time at which the message should be available for processing

Returns

The sequence number of the message that was scheduled.

Implements

Applies to