SALES: 1-800-867-1380

GetMessageBuffer Method (TransportClientEndpointBehavior, Uri, MessageVersion)

Retrieves a message buffer from the specified URI, using the specified credentials and message version.

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

public static MessageBufferClient GetMessageBuffer(
	TransportClientEndpointBehavior credential,
	Uri messageBufferUri,
	MessageVersion messageVersion
)

Parameters

credential
Type: Microsoft.ServiceBus..::..TransportClientEndpointBehavior
The credentials to access the message buffer.
messageBufferUri
Type: System..::..Uri
The URI on which the message buffer is exposed.
messageVersion
Type: System.ServiceModel.Channels..::..MessageVersion
The message version of the message buffer to retrieve.

Return Value

Type: Microsoft.ServiceBus..::..MessageBufferClient
Returns a MessageBufferClient that is associated with the specified message buffer.

Use when you want to connect to a message buffer, but want to filter on a specific type of message. If you do not care what types of messages to retrieve, or are sure that the message buffer will have only one type of message sent to it, use GetMessageBuffer(TransportClientEndpointBehavior, Uri) instead.

The message buffer URI will be in the following format:

http://{serviceNamespace}.servicebus.windows.net/{path}/{buffername}

For more information in accessing a message buffer, see How to: Create and Connect to an AppFabric Service Bus Message Buffer and the Message Buffer Overview.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft