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)

Syntax

'Declaration
Public Shared Function GetMessageBuffer ( _
    credential As TransportClientEndpointBehavior, _
    messageBufferUri As Uri _
) As MessageBufferClient
'Usage
Dim credential As TransportClientEndpointBehavior
Dim messageBufferUri As Uri
Dim returnValue As MessageBufferClient

returnValue = MessageBufferClient.GetMessageBuffer(credential, _
    messageBufferUri)
public static MessageBufferClient GetMessageBuffer(
    TransportClientEndpointBehavior credential,
    Uri messageBufferUri
)
public:
static MessageBufferClient^ GetMessageBuffer(
    TransportClientEndpointBehavior^ credential, 
    Uri^ messageBufferUri
)
static member GetMessageBuffer : 
        credential:TransportClientEndpointBehavior * 
        messageBufferUri:Uri -> MessageBufferClient 
public static function GetMessageBuffer(
    credential : TransportClientEndpointBehavior, 
    messageBufferUri : Uri
) : MessageBufferClient

Parameters

Return Value

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

Remarks

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:

https://{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.

See Also

Reference

MessageBufferClient Class

GetMessageBuffer Overload

Microsoft.ServiceBus Namespace