Share via


QueueClient.SubscribeToRouter Method

[This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Subscribes the Queue as a receiver to the specified router, using the specified lifetime for the subscription.

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

Usage

    Dim instance As QueueClient
Dim routerClient As RouterClient
Dim requestedTimeout As TimeSpan
Dim returnValue As RouterSubscriptionClient

returnValue = instance.SubscribeToRouter(routerClient, requestedTimeout)

Syntax

'Declaration
Public Function SubscribeToRouter ( _
    routerClient As RouterClient, _
    requestedTimeout As TimeSpan _
) As RouterSubscriptionClient
public RouterSubscriptionClient SubscribeToRouter (
    RouterClient routerClient,
    TimeSpan requestedTimeout
)
public:
RouterSubscriptionClient^ SubscribeToRouter (
    RouterClient^ routerClient, 
    TimeSpan requestedTimeout
)
public RouterSubscriptionClient SubscribeToRouter (
    RouterClient routerClient, 
    TimeSpan requestedTimeout
)
public function SubscribeToRouter (
    routerClient : RouterClient, 
    requestedTimeout : TimeSpan
) : RouterSubscriptionClient

Parameters

  • routerClient
    A router client for the router to subscribe to.
  • requestedTimeout
    The desired lifetime of the subscription expressed as an offset from the current UTC time.

Return Value

Returns a RouterSubscriptionClient containing the router subscription client.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also

Reference

QueueClient Class
QueueClient Members
Microsoft.ServiceBus Namespace