共用方式為


EventSubscription Constructors

Definition

Overloads

EventSubscription()

Initializes a new instance of the EventSubscription class.

EventSubscription(String, String, String, String, String, EventSubscriptionDestination, DeliveryWithResourceIdentity, EventSubscriptionFilter, IList<String>, Nullable<DateTime>, String, RetryPolicy, DeadLetterDestination, DeadLetterWithResourceIdentity, SystemData)

Initializes a new instance of the EventSubscription class.

EventSubscription()

Initializes a new instance of the EventSubscription class.

public EventSubscription ();
Public Sub New ()

Applies to

EventSubscription(String, String, String, String, String, EventSubscriptionDestination, DeliveryWithResourceIdentity, EventSubscriptionFilter, IList<String>, Nullable<DateTime>, String, RetryPolicy, DeadLetterDestination, DeadLetterWithResourceIdentity, SystemData)

Initializes a new instance of the EventSubscription class.

public EventSubscription (string id = default, string name = default, string type = default, string topic = default, string provisioningState = default, Microsoft.Azure.Management.EventGrid.Models.EventSubscriptionDestination destination = default, Microsoft.Azure.Management.EventGrid.Models.DeliveryWithResourceIdentity deliveryWithResourceIdentity = default, Microsoft.Azure.Management.EventGrid.Models.EventSubscriptionFilter filter = default, System.Collections.Generic.IList<string> labels = default, DateTime? expirationTimeUtc = default, string eventDeliverySchema = default, Microsoft.Azure.Management.EventGrid.Models.RetryPolicy retryPolicy = default, Microsoft.Azure.Management.EventGrid.Models.DeadLetterDestination deadLetterDestination = default, Microsoft.Azure.Management.EventGrid.Models.DeadLetterWithResourceIdentity deadLetterWithResourceIdentity = default, Microsoft.Azure.Management.EventGrid.Models.SystemData systemData = default);
new Microsoft.Azure.Management.EventGrid.Models.EventSubscription : string * string * string * string * string * Microsoft.Azure.Management.EventGrid.Models.EventSubscriptionDestination * Microsoft.Azure.Management.EventGrid.Models.DeliveryWithResourceIdentity * Microsoft.Azure.Management.EventGrid.Models.EventSubscriptionFilter * System.Collections.Generic.IList<string> * Nullable<DateTime> * string * Microsoft.Azure.Management.EventGrid.Models.RetryPolicy * Microsoft.Azure.Management.EventGrid.Models.DeadLetterDestination * Microsoft.Azure.Management.EventGrid.Models.DeadLetterWithResourceIdentity * Microsoft.Azure.Management.EventGrid.Models.SystemData -> Microsoft.Azure.Management.EventGrid.Models.EventSubscription
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional topic As String = Nothing, Optional provisioningState As String = Nothing, Optional destination As EventSubscriptionDestination = Nothing, Optional deliveryWithResourceIdentity As DeliveryWithResourceIdentity = Nothing, Optional filter As EventSubscriptionFilter = Nothing, Optional labels As IList(Of String) = Nothing, Optional expirationTimeUtc As Nullable(Of DateTime) = Nothing, Optional eventDeliverySchema As String = Nothing, Optional retryPolicy As RetryPolicy = Nothing, Optional deadLetterDestination As DeadLetterDestination = Nothing, Optional deadLetterWithResourceIdentity As DeadLetterWithResourceIdentity = Nothing, Optional systemData As SystemData = Nothing)

Parameters

id
String

Fully qualified identifier of the resource.

name
String

Name of the resource.

type
String

Type of the resource.

topic
String

Name of the topic of the event subscription.

provisioningState
String

Provisioning state of the event subscription. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction'

destination
EventSubscriptionDestination

Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.

deliveryWithResourceIdentity
DeliveryWithResourceIdentity

Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.

filter
EventSubscriptionFilter

Information about the filter for the event subscription.

labels
IList<String>

List of user defined labels.

expirationTimeUtc
Nullable<DateTime>

Expiration time of the event subscription.

eventDeliverySchema
String

The event delivery schema for the event subscription. Possible values include: 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0'

retryPolicy
RetryPolicy

The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.

deadLetterDestination
DeadLetterDestination

The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.

deadLetterWithResourceIdentity
DeadLetterWithResourceIdentity

The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.

systemData
SystemData

The system metadata relating to Event Subscription resource.

Applies to