Share via


NotificationMessagesClient Constructors

Definition

Overloads

NotificationMessagesClient()

Initializes a new instance of NotificationMessagesClient for mocking.

NotificationMessagesClient(String)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient(String, CommunicationMessagesClientOptions)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient(Uri, AzureKeyCredential)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient(Uri, TokenCredential)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient(Uri, TokenCredential, CommunicationMessagesClientOptions)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient(Uri, AzureKeyCredential, CommunicationMessagesClientOptions)

Initializes a new instance of NotificationMessagesClient.

NotificationMessagesClient()

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient for mocking.

protected NotificationMessagesClient ();
Protected Sub New ()

Applies to

NotificationMessagesClient(String)

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (string connectionString);
new Azure.Communication.Messages.NotificationMessagesClient : string -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (connectionString As String)

Parameters

connectionString
String

Connection string acquired from the Azure Communication Services resource.

Applies to

NotificationMessagesClient(String, CommunicationMessagesClientOptions)

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (string connectionString, Azure.Communication.Messages.CommunicationMessagesClientOptions options);
new Azure.Communication.Messages.NotificationMessagesClient : string * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (connectionString As String, options As CommunicationMessagesClientOptions)

Parameters

connectionString
String

Connection string acquired from the Azure Communication Services resource.

options
CommunicationMessagesClientOptions

Client options exposing Diagnostics, Retry, Transport, etc.

Applies to

NotificationMessagesClient(Uri, AzureKeyCredential)

Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.Communication.Messages.NotificationMessagesClient : Uri * Azure.AzureKeyCredential -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

endpoint
Uri

The communication resource, for example https://my-resource.communication.azure.com.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

NotificationMessagesClient(Uri, TokenCredential)

Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Communication.Messages.NotificationMessagesClient : Uri * Azure.Core.TokenCredential -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

The communication resource, for example https://my-resource.communication.azure.com.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

NotificationMessagesClient(Uri, TokenCredential, CommunicationMessagesClientOptions)

Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Communication.Messages.CommunicationMessagesClientOptions options);
new Azure.Communication.Messages.NotificationMessagesClient : Uri * Azure.Core.TokenCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As CommunicationMessagesClientOptions)

Parameters

endpoint
Uri

The communication resource, for example https://my-resource.communication.azure.com.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
CommunicationMessagesClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

NotificationMessagesClient(Uri, AzureKeyCredential, CommunicationMessagesClientOptions)

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

Initializes a new instance of NotificationMessagesClient.

public NotificationMessagesClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.Communication.Messages.CommunicationMessagesClientOptions options = default);
public NotificationMessagesClient (Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.Communication.Messages.CommunicationMessagesClientOptions options = default);
new Azure.Communication.Messages.NotificationMessagesClient : Uri * Azure.AzureKeyCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.NotificationMessagesClient
new Azure.Communication.Messages.NotificationMessagesClient : Uri * Azure.AzureKeyCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.NotificationMessagesClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, Optional options As CommunicationMessagesClientOptions = Nothing)
Public Sub New (endpoint As Uri, keyCredential As AzureKeyCredential, Optional options As CommunicationMessagesClientOptions = Nothing)

Parameters

endpoint
Uri

The URI of the Azure Communication Services resource.

credentialkeyCredential
AzureKeyCredential

The AzureKeyCredential used to authenticate requests.

options
CommunicationMessagesClientOptions

Client options exposing Diagnostics, Retry, Transport, etc.

Applies to