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

SnapshotOperationsExtensions.UpdateAsync 方法

定义

更新快照的信息。 只有获取快照的源订阅才能更新快照。

public static System.Threading.Tasks.Task UpdateAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.ISnapshotOperations operations, Guid snapshotId, System.Collections.Generic.IList<Guid> applyScope = default, string userData = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.CognitiveServices.Vision.Face.ISnapshotOperations * Guid * System.Collections.Generic.IList<Guid> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function UpdateAsync (operations As ISnapshotOperations, snapshotId As Guid, Optional applyScope As IList(Of Guid) = Nothing, Optional userData As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

operations
ISnapshotOperations

此扩展方法的操作组。

snapshotId
Guid

引用特定快照的 ID。

applyScope
IList<Guid>

快照的目标人脸订阅 ID 数组,由调用 Snapshot - Take 时创建快照的用户指定。 对于每个快照,只有 Snapshot - Take 的 applyScope 中包含的订阅才能应用它。

userData
String

用户为任何目的指定了有关快照的数据。 长度不应超过 16KB。

cancellationToken
CancellationToken

取消标记。

返回

适用于