你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArtifactManifestResource.UpdateStateAsync 方法

定义

更新项目清单的状态。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}/artifactStores/{artifactStoreName}/artifactManifests/{artifactManifestName}/updateState
  • 操作IdArtifactManifests_UpdateState
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState>> UpdateStateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState artifactManifestUpdateState, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateStateAsync : Azure.WaitUntil * Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState>>
override this.UpdateStateAsync : Azure.WaitUntil * Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.Models.ArtifactManifestUpdateState>>
Public Overridable Function UpdateStateAsync (waitUntil As WaitUntil, artifactManifestUpdateState As ArtifactManifestUpdateState, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ArtifactManifestUpdateState))

参数

waitUntil
WaitUntil

Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

artifactManifestUpdateState
ArtifactManifestUpdateState

提供用于更新项目清单状态的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

artifactManifestUpdateState 为 null。

适用于