共用方式為


PartnerNamespaceChannelCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string channelName, Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EventGrid.PartnerNamespaceChannelData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventGrid.PartnerNamespaceChannelResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, channelName As String, data As PartnerNamespaceChannelData, Optional cancellationToken As CancellationToken = Nothing) As 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