SystemTopicEventSubscriptionsOperationsExtensions.BeginCreateOrUpdateAsync Method
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.
Create or update an event subscription for a system topic.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventSubscription> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.EventGrid.ISystemTopicEventSubscriptionsOperations operations, string resourceGroupName, string systemTopicName, string eventSubscriptionName, Microsoft.Azure.Management.EventGrid.Models.EventSubscription eventSubscriptionInfo, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.EventGrid.ISystemTopicEventSubscriptionsOperations * string * string * string * Microsoft.Azure.Management.EventGrid.Models.EventSubscription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventSubscription>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As ISystemTopicEventSubscriptionsOperations, resourceGroupName As String, systemTopicName As String, eventSubscriptionName As String, eventSubscriptionInfo As EventSubscription, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventSubscription)
Parameters
- operations
- ISystemTopicEventSubscriptionsOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group within the user's subscription.
- systemTopicName
- String
Name of the system topic.
- eventSubscriptionName
- String
Name of the event subscription to be created. Event subscription names must be between 3 and 100 characters in length and use alphanumeric letters only.
- eventSubscriptionInfo
- EventSubscription
Event subscription properties containing the destination and filter information.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Asynchronously creates or updates an event subscription with the specified parameters. Existing event subscriptions will be updated with this API.
Applies to
Azure SDK for .NET