EN
此内容没有您的语言版本,但有英语版本。

MessageReceiver.TryReceive Method (MessageReceipt, BrokeredMessage%)

Tries to receive a brokered message.

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

public bool TryReceive(
	MessageReceipt receipt,
	out BrokeredMessage message
)

Parameters

receipt
Type: Microsoft.ServiceBus.Messaging.MessageReceipt
The message receipt.
message
Type: Microsoft.ServiceBus.Messaging.BrokeredMessage%
[out] The message.

Return Value

Type: System.Boolean
true if the attempt succeeds, false if it fails.
显示: