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


Type: Microsoft.ServiceBus..::..TransportClientEndpointBehavior
The credentials to access the message buffer.
Type: System..::..Uri
The URI on which the message buffer is exposed.
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:


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.

Community Additions