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

MessagingFactory.OnCreateMessageReceiver 方法

定义

执行创建消息接收器操作。

protected virtual Microsoft.ServiceBus.Messaging.MessageReceiver OnCreateMessageReceiver (string entityName, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode, TimeSpan timeout);
abstract member OnCreateMessageReceiver : string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageReceiver
override this.OnCreateMessageReceiver : string * Microsoft.ServiceBus.Messaging.ReceiveMode * TimeSpan -> Microsoft.ServiceBus.Messaging.MessageReceiver
Protected Overridable Function OnCreateMessageReceiver (entityName As String, receiveMode As ReceiveMode, timeout As TimeSpan) As MessageReceiver

参数

entityName
String

实体的名称。

receiveMode
ReceiveMode

消息接收模式。

timeout
TimeSpan

超时。

返回

引用 IAsyncResult 异步创建消息接收器操作的 对象。

适用于