SendGridClient 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
| Name | Description |
|---|---|
| SendGridClient() | |
| SendGridClient(String) |
Creates a new SendGridClient with the specified connection runtime URL string. Uses ManagedIdentityCredential by default. |
| SendGridClient(Uri) |
Creates a new SendGridClient with the specified connection runtime URL. Uses ManagedIdentityCredential by default. |
| SendGridClient(Uri, TokenCredential) |
Creates a new SendGridClient with the specified connection runtime URL and credential. |
| SendGridClient(Uri, TokenCredential, ConnectorClientOptions) |
Creates a new SendGridClient with the specified connection runtime URL and credential. |
SendGridClient()
protected SendGridClient();
Protected Sub New ()
Applies to
SendGridClient(String)
Creates a new SendGridClient with the specified connection runtime URL string. Uses ManagedIdentityCredential by default.
public SendGridClient(string connectionRuntimeUrl);
new Azure.Connectors.Sdk.SendGrid.SendGridClient : string -> Azure.Connectors.Sdk.SendGrid.SendGridClient
Public Sub New (connectionRuntimeUrl As String)
Parameters
- connectionRuntimeUrl
- String
The connection runtime URL from Azure Portal.
Applies to
SendGridClient(Uri)
Creates a new SendGridClient with the specified connection runtime URL. Uses ManagedIdentityCredential by default.
public SendGridClient(Uri connectionRuntimeUrl);
new Azure.Connectors.Sdk.SendGrid.SendGridClient : Uri -> Azure.Connectors.Sdk.SendGrid.SendGridClient
Public Sub New (connectionRuntimeUrl As Uri)
Parameters
- connectionRuntimeUrl
- Uri
The connection runtime URL from Azure Portal.
Applies to
SendGridClient(Uri, TokenCredential)
Creates a new SendGridClient with the specified connection runtime URL and credential.
public SendGridClient(Uri connectionRuntimeUrl, Azure.Core.TokenCredential credential);
new Azure.Connectors.Sdk.SendGrid.SendGridClient : Uri * Azure.Core.TokenCredential -> Azure.Connectors.Sdk.SendGrid.SendGridClient
Public Sub New (connectionRuntimeUrl As Uri, credential As TokenCredential)
Parameters
- connectionRuntimeUrl
- Uri
The connection runtime URL from Azure Portal.
- credential
- TokenCredential
The Azure credential for authentication.
Applies to
SendGridClient(Uri, TokenCredential, ConnectorClientOptions)
Creates a new SendGridClient with the specified connection runtime URL and credential.
public SendGridClient(Uri connectionRuntimeUrl, Azure.Core.TokenCredential credential, Azure.Connectors.Sdk.ConnectorClientOptions options = default);
new Azure.Connectors.Sdk.SendGrid.SendGridClient : Uri * Azure.Core.TokenCredential * Azure.Connectors.Sdk.ConnectorClientOptions -> Azure.Connectors.Sdk.SendGrid.SendGridClient
Public Sub New (connectionRuntimeUrl As Uri, credential As TokenCredential, Optional options As ConnectorClientOptions = Nothing)
Parameters
- connectionRuntimeUrl
- Uri
The connection runtime URL from Azure Portal.
- credential
- TokenCredential
The Azure credential for authentication.
- options
- ConnectorClientOptions
Optional client options for retry, timeout, etc.