GetMessageBuffer Method (TransportClientEndpointBehavior, Uri)

Retrieves a message buffer client, based on the specified credentials and URI.

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

public static MessageBufferClient GetMessageBuffer(
	TransportClientEndpointBehavior credential,
	Uri messageBufferUri
)

Parameters

credential
Type: Microsoft.ServiceBus..::..TransportClientEndpointBehavior
The credentials to access the message buffer.
messageBufferUri
Type: System..::..Uri
The URI that identifies the message buffer.

Return Value

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

Use GetMessageBuffer(TransportClientEndpointBehavior, Uri) when you know the URI, and are sure or do not care what type of messages are going to be sent to the message buffer. If you wish to filter for one specific type of message, use GetMessageBuffer(TransportClientEndpointBehavior, Uri, MessageVersion) 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.

Community Additions

Show: