EventChannelsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create an event channel.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventChannel> CreateOrUpdateAsync (this Microsoft.Azure.Management.EventGrid.IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, Microsoft.Azure.Management.EventGrid.Models.EventChannel eventChannelInfo, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EventGrid.IEventChannelsOperations * string * string * string * Microsoft.Azure.Management.EventGrid.Models.EventChannel * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.EventChannel>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IEventChannelsOperations, resourceGroupName As String, partnerNamespaceName As String, eventChannelName As String, eventChannelInfo As EventChannel, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventChannel)

Parameters

operations
IEventChannelsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group within the user's subscription.

partnerNamespaceName
System.String

Name of the partner namespace.

eventChannelName
System.String

Name of the event channel.

eventChannelInfo
EventChannel

EventChannel information.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<EventChannel>

Remarks

Asynchronously creates a new event channel with the specified parameters.

Applies to