Compartilhar via


EmailClient Constructors

Definition

Overloads

EmailClient()

Initializes a new instance of EmailClient for mocking.

EmailClient(String)

Initializes a new instance of EmailClient

EmailClient(String, EmailClientOptions)

Initializes a new instance of EmailClient.

EmailClient(Uri, AzureKeyCredential, EmailClientOptions)

Initializes a new instance of EmailClient.

EmailClient(Uri, TokenCredential, EmailClientOptions)

Initializes a new instance of EmailClient.

EmailClient()

Source:
EmailClient.cs
Source:
EmailClient.cs

Initializes a new instance of EmailClient for mocking.

protected EmailClient ();
Protected Sub New ()

Applies to

EmailClient(String)

Source:
EmailClient.cs
Source:
EmailClient.cs

Initializes a new instance of EmailClient

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

Parameters

connectionString
String

Connection string acquired from the Azure Communication Services resource.

Applies to

EmailClient(String, EmailClientOptions)

Source:
EmailClient.cs
Source:
EmailClient.cs

Initializes a new instance of EmailClient.

public EmailClient (string connectionString, Azure.Communication.Email.EmailClientOptions options);
new Azure.Communication.Email.EmailClient : string * Azure.Communication.Email.EmailClientOptions -> Azure.Communication.Email.EmailClient
Public Sub New (connectionString As String, options As EmailClientOptions)

Parameters

connectionString
String

Connection string acquired from the Azure Communication Services resource.

options
EmailClientOptions

Client option exposing Diagnostics, Retry, Transport, etc.

Applies to

EmailClient(Uri, AzureKeyCredential, EmailClientOptions)

Source:
EmailClient.cs
Source:
EmailClient.cs

Initializes a new instance of EmailClient.

public EmailClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.Communication.Email.EmailClientOptions options = default);
new Azure.Communication.Email.EmailClient : Uri * Azure.AzureKeyCredential * Azure.Communication.Email.EmailClientOptions -> Azure.Communication.Email.EmailClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, Optional options As EmailClientOptions = Nothing)

Parameters

endpoint
Uri

The URI of the Azure Communication Services resource.

credential
AzureKeyCredential

The AzureKeyCredential used to authenticate requests.

options
EmailClientOptions

Client option exposing Diagnostics, Retry, Transport, etc.

Applies to

EmailClient(Uri, TokenCredential, EmailClientOptions)

Source:
EmailClient.cs
Source:
EmailClient.cs

Initializes a new instance of EmailClient.

public EmailClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Communication.Email.EmailClientOptions options = default);
new Azure.Communication.Email.EmailClient : Uri * Azure.Core.TokenCredential * Azure.Communication.Email.EmailClientOptions -> Azure.Communication.Email.EmailClient
Public Sub New (endpoint As Uri, credential As TokenCredential, Optional options As EmailClientOptions = Nothing)

Parameters

endpoint
Uri

The URI of the Azure Communication Services resource.

credential
TokenCredential

The TokenCredential used to authenticate requests, such as DefaultAzureCredential.

options
EmailClientOptions

Client option exposing Diagnostics, Retry, Transport, etc.

Applies to