导出 (0) 打印
全部展开
EN
此内容没有您的语言版本,但有英语版本。

MessageReceiver.OnTryReceive Method (Int32, TimeSpan, IEnumerable<BrokeredMessage>%)

Executes the try receive action.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

protected virtual bool OnTryReceive(
	int messageCount,
	TimeSpan timeout,
	out IEnumerable<BrokeredMessage> messages
)

Parameters

messageCount
Type: System.Int32
The number of messages.
timeout
Type: System.TimeSpan
The timeout.
messages
Type: System.Collections.Generic.IEnumerable<BrokeredMessage>%
[out] The messages.

Return Value

Type: System.Boolean
true if it succeeds, false if it fails.
显示:
© 2014 Microsoft