다음을 통해 공유


PartnerNamespaceChannelCollection.CreateOrUpdateAsync Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}
  • Operation Id: Channels_CreateOrUpdate
  • Default Api Version: 2024-06-01-preview
  • Resource: PartnerNamespaceChannelResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string channelName, Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, channelName As String, data As PartnerNamespaceChannelData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PartnerNamespaceChannelResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

channelName
String

Name of the channel.

data
PartnerNamespaceChannelData

Channel information.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

channelName or data is null.

Applies to