Exporteren (0) Afdrukken
Alles uitvouwen
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

MessagingFactory.CreateSubscriptionClient Method (String, String, ReceiveMode)

Creates a new subscription client.

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

public SubscriptionClient CreateSubscriptionClient(
	string topicPath,
	string name,
	ReceiveMode receiveMode
)

Parameters

topicPath
Type: System.String
The topic path relative to the service namespace.
name
Type: System.String
The name of the subscription.
receiveMode
Type: Microsoft.ServiceBus.Messaging.ReceiveMode
The receive mode.

Return Value

Type: Microsoft.ServiceBus.Messaging.SubscriptionClient
The newly created subscription client.

ExceptionCondition
ArgumentException

The supplied topicPath is null or empty.

ArgumentOutOfRangeException

The length of topicPath is greater than TopicNameMaximumLength().

TimeoutException

The operation times out. The timeout period is initialized through the MessagingFactorySettings object. You may need to increase the value of OperationTimeout to avoid this exception if the timeout value is relatively low.

MessagingException

An internal error or unexpected exception occurs.

OperationCanceledException

The factory has been closed or aborted.

Community-inhoud

Toevoegen
Weergeven:
© 2014 Microsoft