Partilhar via


EventGridClient Constructors

Definition

Overloads

EventGridClient()

Initializes a new instance of EventGridClient for mocking.

EventGridClient(Uri, AzureKeyCredential)

Initializes a new instance of EventGridClient.

EventGridClient(Uri, TokenCredential)

Initializes a new instance of EventGridClient.

EventGridClient(Uri, AzureKeyCredential, EventGridClientOptions)

Initializes a new instance of EventGridClient.

EventGridClient(Uri, TokenCredential, EventGridClientOptions)

Initializes a new instance of EventGridClient.

EventGridClient()

Source:
EventGridClient.cs

Initializes a new instance of EventGridClient for mocking.

protected EventGridClient ();
Protected Sub New ()

Applies to

EventGridClient(Uri, AzureKeyCredential)

Source:
EventGridClient.cs

Initializes a new instance of EventGridClient.

public EventGridClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.Messaging.EventGrid.Namespaces.EventGridClient : Uri * Azure.AzureKeyCredential -> Azure.Messaging.EventGrid.Namespaces.EventGridClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

endpoint
Uri

The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

EventGridClient(Uri, TokenCredential)

Source:
EventGridClient.cs

Initializes a new instance of EventGridClient.

public EventGridClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Messaging.EventGrid.Namespaces.EventGridClient : Uri * Azure.Core.TokenCredential -> Azure.Messaging.EventGrid.Namespaces.EventGridClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

EventGridClient(Uri, AzureKeyCredential, EventGridClientOptions)

Source:
EventGridClient.cs

Initializes a new instance of EventGridClient.

public EventGridClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.Messaging.EventGrid.Namespaces.EventGridClientOptions options);
new Azure.Messaging.EventGrid.Namespaces.EventGridClient : Uri * Azure.AzureKeyCredential * Azure.Messaging.EventGrid.Namespaces.EventGridClientOptions -> Azure.Messaging.EventGrid.Namespaces.EventGridClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As EventGridClientOptions)

Parameters

endpoint
Uri

The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

options
EventGridClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

EventGridClient(Uri, TokenCredential, EventGridClientOptions)

Source:
EventGridClient.cs

Initializes a new instance of EventGridClient.

public EventGridClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Messaging.EventGrid.Namespaces.EventGridClientOptions options);
new Azure.Messaging.EventGrid.Namespaces.EventGridClient : Uri * Azure.Core.TokenCredential * Azure.Messaging.EventGrid.Namespaces.EventGridClientOptions -> Azure.Messaging.EventGrid.Namespaces.EventGridClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As EventGridClientOptions)

Parameters

endpoint
Uri

The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
EventGridClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to