共用方式為


CommunicationServiceResource.UpdateAsync 方法

定義

多載

UpdateAsync(CommunicationServiceResourcePatch, CancellationToken)

更新現有 CommunicationService 的作業。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 作業IdCommunicationServices_Update
UpdateAsync(WaitUntil, CommunicationServiceResourcePatch, CancellationToken)

更新現有 CommunicationService 的作業。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 作業IdCommunicationServices_Update

UpdateAsync(CommunicationServiceResourcePatch, CancellationToken)

更新現有 CommunicationService 的作業。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 作業IdCommunicationServices_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>> UpdateAsync (Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>>
override this.UpdateAsync : Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>>
Public Overridable Function UpdateAsync (patch As CommunicationServiceResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationServiceResource))

參數

patch
CommunicationServiceResourcePatch

更新作業的參數。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

patch 為 null。

適用於

UpdateAsync(WaitUntil, CommunicationServiceResourcePatch, CancellationToken)

更新現有 CommunicationService 的作業。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 作業IdCommunicationServices_Update
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Communication.Models.CommunicationServiceResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, patch As CommunicationServiceResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CommunicationServiceResource))

參數

waitUntil
WaitUntil

Completed 如果 方法應該等候傳回,直到服務上長時間執行的作業完成為止; Started 如果它應該在啟動作業之後傳回,則為 。 如需長時間執行作業的詳細資訊,請參閱 Azure.Core Long-Running 作業範例

patch
CommunicationServiceResourcePatch

更新作業的參數。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

patch 為 null。

適用於