MessageTemplateClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MessageTemplateClient() |
Initializes a new instance of MessageTemplateClient for mocking. |
MessageTemplateClient(String) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient(String, CommunicationMessagesClientOptions) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient(Uri, AzureKeyCredential) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient(Uri, TokenCredential) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient(Uri, TokenCredential, CommunicationMessagesClientOptions) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient(Uri, AzureKeyCredential, CommunicationMessagesClientOptions) |
Initializes a new instance of MessageTemplateClient. |
MessageTemplateClient()
- Source:
- MessageTemplateClient.cs
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient for mocking.
protected MessageTemplateClient ();
Protected Sub New ()
Applies to
MessageTemplateClient(String)
- Source:
- MessageTemplateClient.cs
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (string connectionString);
new Azure.Communication.Messages.MessageTemplateClient : string -> Azure.Communication.Messages.MessageTemplateClient
Public Sub New (connectionString As String)
Parameters
- connectionString
- String
Connection string acquired from the Azure Communication Services resource.
Applies to
MessageTemplateClient(String, CommunicationMessagesClientOptions)
- Source:
- MessageTemplateClient.cs
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (string connectionString, Azure.Communication.Messages.CommunicationMessagesClientOptions options);
new Azure.Communication.Messages.MessageTemplateClient : string * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.MessageTemplateClient
Public Sub New (connectionString As String, options As CommunicationMessagesClientOptions)
Parameters
- connectionString
- String
Connection string acquired from the Azure Communication Services resource.
Client options exposing Diagnostics, Retry, Transport, etc.
Applies to
MessageTemplateClient(Uri, AzureKeyCredential)
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.Communication.Messages.MessageTemplateClient : Uri * Azure.AzureKeyCredential -> Azure.Communication.Messages.MessageTemplateClient
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
MessageTemplateClient(Uri, TokenCredential)
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Communication.Messages.MessageTemplateClient : Uri * Azure.Core.TokenCredential -> Azure.Communication.Messages.MessageTemplateClient
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
MessageTemplateClient(Uri, TokenCredential, CommunicationMessagesClientOptions)
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Communication.Messages.CommunicationMessagesClientOptions options);
new Azure.Communication.Messages.MessageTemplateClient : Uri * Azure.Core.TokenCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.MessageTemplateClient
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.
The options for configuring the client.
Exceptions
endpoint
or credential
is null.
Applies to
MessageTemplateClient(Uri, AzureKeyCredential, CommunicationMessagesClientOptions)
- Source:
- MessageTemplateClient.cs
- Source:
- MessageTemplateClient.cs
Initializes a new instance of MessageTemplateClient.
public MessageTemplateClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.Communication.Messages.CommunicationMessagesClientOptions options = default);
public MessageTemplateClient (Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.Communication.Messages.CommunicationMessagesClientOptions options = default);
new Azure.Communication.Messages.MessageTemplateClient : Uri * Azure.AzureKeyCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.MessageTemplateClient
new Azure.Communication.Messages.MessageTemplateClient : Uri * Azure.AzureKeyCredential * Azure.Communication.Messages.CommunicationMessagesClientOptions -> Azure.Communication.Messages.MessageTemplateClient
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.
Client options exposing Diagnostics, Retry, Transport, etc.
Applies to
Azure SDK for .NET