Partilhar via


EventGridSenderClient Constructors

Definition

Overloads

EventGridSenderClient()

Initializes a new instance of EventGridSenderClient for mocking.

EventGridSenderClient(Uri, String, AzureKeyCredential)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, TokenCredential)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, AzureKeyCredential, EventGridSenderClientOptions)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, TokenCredential, EventGridSenderClientOptions)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient()

Source:
EventGridSenderClient.cs

Initializes a new instance of EventGridSenderClient for mocking.

protected EventGridSenderClient ();
Protected Sub New ()

Applies to

EventGridSenderClient(Uri, String, AzureKeyCredential)

Source:
EventGridSenderClient.cs

Initializes a new instance of EventGridSenderClient.

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

Parameters

endpoint
Uri

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

topicName
String

The topic to send events to.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

topicName is null.

topicName is an empty string, and was expected to be non-empty.

Applies to

EventGridSenderClient(Uri, String, TokenCredential)

Source:
EventGridSenderClient.cs

Initializes a new instance of EventGridSenderClient.

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

Parameters

endpoint
Uri

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

topicName
String

The topic to send events to.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

topicName is null.

topicName is an empty string, and was expected to be non-empty.

Applies to

EventGridSenderClient(Uri, String, AzureKeyCredential, EventGridSenderClientOptions)

Source:
EventGridSenderClient.cs

Initializes a new instance of EventGridSenderClient.

public EventGridSenderClient (Uri endpoint, string topicName, Azure.AzureKeyCredential credential, Azure.Messaging.EventGrid.Namespaces.EventGridSenderClientOptions options);
new Azure.Messaging.EventGrid.Namespaces.EventGridSenderClient : Uri * string * Azure.AzureKeyCredential * Azure.Messaging.EventGrid.Namespaces.EventGridSenderClientOptions -> Azure.Messaging.EventGrid.Namespaces.EventGridSenderClient
Public Sub New (endpoint As Uri, topicName As String, credential As AzureKeyCredential, options As EventGridSenderClientOptions)

Parameters

endpoint
Uri

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

topicName
String

The topic to send events to.

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

options
EventGridSenderClientOptions

The options for configuring the client.

Exceptions

topicName is null.

topicName is an empty string, and was expected to be non-empty.

Applies to

EventGridSenderClient(Uri, String, TokenCredential, EventGridSenderClientOptions)

Source:
EventGridSenderClient.cs

Initializes a new instance of EventGridSenderClient.

public EventGridSenderClient (Uri endpoint, string topicName, Azure.Core.TokenCredential credential, Azure.Messaging.EventGrid.Namespaces.EventGridSenderClientOptions options);
new Azure.Messaging.EventGrid.Namespaces.EventGridSenderClient : Uri * string * Azure.Core.TokenCredential * Azure.Messaging.EventGrid.Namespaces.EventGridSenderClientOptions -> Azure.Messaging.EventGrid.Namespaces.EventGridSenderClient
Public Sub New (endpoint As Uri, topicName As String, credential As TokenCredential, options As EventGridSenderClientOptions)

Parameters

endpoint
Uri

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

topicName
String

The topic to send events to.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
EventGridSenderClientOptions

The options for configuring the client.

Exceptions

topicName is null.

topicName is an empty string, and was expected to be non-empty.

Applies to