Share via


ChannelsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update a channel.

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

Parameters

operations
IChannelsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the partners subscription.

partnerNamespaceName
String

Name of the partner namespace.

channelName
String

Name of the channel.

channelInfo
Channel

Channel information.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Synchronously creates or updates a new channel with the specified parameters.

Applies to