SubscriptionClient.Create SubscriptionClient.Create SubscriptionClient.Create Method

Definition

Overloads

Create(String, String) Create(String, String) Create(String, String)

Creates a new copy of SubscriptionClient with specified name and topic path.

Create(String, String, ReceiveMode) Create(String, String, ReceiveMode) Create(String, String, ReceiveMode)

Creates a new copy of SubscriptionClient with specified name, topic path and mode.

Create(Uri, String, String, AuthenticationContext, ClientAssertionCertificate, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, ClientAssertionCertificate, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

Create(Uri, String, String, AuthenticationContext, ClientCredential, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, ClientCredential, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

Create(Uri, String, String, AuthenticationContext, String, UserPasswordCredential, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, String, UserPasswordCredential, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

Create(Uri, String, String, AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

Create(String, String) Create(String, String) Create(String, String)

Creates a new copy of SubscriptionClient with specified name and topic path.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (string topicPath, string name);
static member Create : string * string -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Public Shared Function Create (topicPath As String, name As String) As SubscriptionClient
Parameters
topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

Returns

Create(String, String, ReceiveMode) Create(String, String, ReceiveMode) Create(String, String, ReceiveMode)

Creates a new copy of SubscriptionClient with specified name, topic path and mode.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (string topicPath, string name, Microsoft.ServiceBus.Messaging.ReceiveMode mode);
static member Create : string * string * Microsoft.ServiceBus.Messaging.ReceiveMode -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Public Shared Function Create (topicPath As String, name As String, mode As ReceiveMode) As SubscriptionClient
Parameters
topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

mode
ReceiveMode ReceiveMode ReceiveMode

The message receive mode.

Returns

Create(Uri, String, String, AuthenticationContext, ClientAssertionCertificate, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, ClientAssertionCertificate, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (Uri endpointAddress, string topicPath, string name, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate clientAssertionCertificate, Microsoft.ServiceBus.Messaging.ReceiveMode mode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, Nullable<TimeSpan> operationTimeout = null, Microsoft.ServiceBus.Messaging.TransportType transportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging);
static member Create : Uri * string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate * Microsoft.ServiceBus.Messaging.ReceiveMode * Nullable<TimeSpan> * Microsoft.ServiceBus.Messaging.TransportType -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Parameters
endpointAddress
Uri Uri Uri

Fully qualified domain name for Sercvice Bus. Most likely, {yournamespace}.servicebus.windows.net

topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientAssertionCertificate
ClientAssertionCertificate ClientAssertionCertificate ClientAssertionCertificate

The client assertion certificate credential.

mode
ReceiveMode ReceiveMode ReceiveMode

The receive mode.

operationTimeout
Nullable<TimeSpan>

TimeSpan that specifies how long the messaging operation has to complete before timing out

transportType
TransportType TransportType TransportType

Messaging transport type.

Returns

Create(Uri, String, String, AuthenticationContext, ClientCredential, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, ClientCredential, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (Uri endpointAddress, string topicPath, string name, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential clientCredential, Microsoft.ServiceBus.Messaging.ReceiveMode mode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, Nullable<TimeSpan> operationTimeout = null, Microsoft.ServiceBus.Messaging.TransportType transportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging);
static member Create : Uri * string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.ServiceBus.Messaging.ReceiveMode * Nullable<TimeSpan> * Microsoft.ServiceBus.Messaging.TransportType -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Parameters
endpointAddress
Uri Uri Uri

Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net

topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientCredential
ClientCredential ClientCredential ClientCredential

The app credential.

mode
ReceiveMode ReceiveMode ReceiveMode

The receive mode.

operationTimeout
Nullable<TimeSpan>

TimeSpan that specifies how long the messaging operation has to complete before timing out

transportType
TransportType TransportType TransportType

Messaging transport type.

Returns

Create(Uri, String, String, AuthenticationContext, String, UserPasswordCredential, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, String, UserPasswordCredential, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (Uri endpointAddress, string topicPath, string name, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, string clientId, Microsoft.IdentityModel.Clients.ActiveDirectory.UserPasswordCredential userPasswordCredential, Microsoft.ServiceBus.Messaging.ReceiveMode mode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, Nullable<TimeSpan> operationTimeout = null, Microsoft.ServiceBus.Messaging.TransportType transportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging);
static member Create : Uri * string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Microsoft.IdentityModel.Clients.ActiveDirectory.UserPasswordCredential * Microsoft.ServiceBus.Messaging.ReceiveMode * Nullable<TimeSpan> * Microsoft.ServiceBus.Messaging.TransportType -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Parameters
endpointAddress
Uri Uri Uri

Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net

topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientId
String String String

ClientId for AAD.

userPasswordCredential
UserPasswordCredential UserPasswordCredential UserPasswordCredential

The user password credential.

mode
ReceiveMode ReceiveMode ReceiveMode

The receive mode.

operationTimeout
Nullable<TimeSpan>

TimeSpan that specifies how long the messaging operation has to complete before timing out

transportType
TransportType TransportType TransportType

Messaging transport type.

Returns

Create(Uri, String, String, AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, ReceiveMode, Nullable<TimeSpan>, TransportType) Create(Uri, String, String, AuthenticationContext, String, Uri, IPlatformParameters, UserIdentifier, ReceiveMode, Nullable<TimeSpan>, TransportType)

Creates a new instance of the SubscriptionClient by using Azure Active Directory authentication context.

public static Microsoft.ServiceBus.Messaging.SubscriptionClient Create (Uri endpointAddress, string topicPath, string name, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext authContext, string clientId, Uri redirectUri, Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters platformParameters, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userIdentifier = null, Microsoft.ServiceBus.Messaging.ReceiveMode mode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, Nullable<TimeSpan> operationTimeout = null, Microsoft.ServiceBus.Messaging.TransportType transportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging);
static member Create : Uri * string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * Microsoft.ServiceBus.Messaging.ReceiveMode * Nullable<TimeSpan> * Microsoft.ServiceBus.Messaging.TransportType -> Microsoft.ServiceBus.Messaging.SubscriptionClient
Parameters
endpointAddress
Uri Uri Uri

Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net

topicPath
String String String

The full pathname of the topic.

name
String String String

The name of the subscription.

authContext
AuthenticationContext AuthenticationContext AuthenticationContext

AuthenticationContext for AAD.

clientId
String String String

ClientId for AAD.

redirectUri
Uri Uri Uri

The redrectUri on Client App.

platformParameters
IPlatformParameters IPlatformParameters IPlatformParameters

Platform parameters

userIdentifier
UserIdentifier UserIdentifier UserIdentifier

User Identifier

mode
ReceiveMode ReceiveMode ReceiveMode

The receive mode.

operationTimeout
Nullable<TimeSpan>

TimeSpan that specifies how long the messaging operation has to complete before timing out

transportType
TransportType TransportType TransportType

Messaging transport type.

Returns

Applies to