你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Snapshot 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Snapshot() |
初始化 Snapshot 类的新实例。 |
Snapshot(Guid, String, SnapshotObjectType, IList<Guid>, DateTime, DateTime, String) |
初始化 Snapshot 类的新实例。 |
Snapshot()
Snapshot(Guid, String, SnapshotObjectType, IList<Guid>, DateTime, DateTime, String)
- Source:
- Snapshot.cs
初始化 Snapshot 类的新实例。
public Snapshot (Guid id, string account, Microsoft.Azure.CognitiveServices.Vision.Face.Models.SnapshotObjectType type, System.Collections.Generic.IList<Guid> applyScope, DateTime createdTime, DateTime lastUpdateTime, string userData = default);
new Microsoft.Azure.CognitiveServices.Vision.Face.Models.Snapshot : Guid * string * Microsoft.Azure.CognitiveServices.Vision.Face.Models.SnapshotObjectType * System.Collections.Generic.IList<Guid> * DateTime * DateTime * string -> Microsoft.Azure.CognitiveServices.Vision.Face.Models.Snapshot
Public Sub New (id As Guid, account As String, type As SnapshotObjectType, applyScope As IList(Of Guid), createdTime As DateTime, lastUpdateTime As DateTime, Optional userData As String = Nothing)
参数
- id
- Guid
快照 ID。
- account
- String
通过快照 - 拍摄创建快照的订阅者的 Azure 认知服务人脸帐户 ID。
- type
- SnapshotObjectType
快照中的源对象的类型,由在调用 Snapshot - Take 时创建快照的订阅者指定。 目前支持 FaceList、PersonGroup、LargeFaceList 和 LargePersonGroup。 可能的值包括:“FaceList”、“LargeFaceList”、“LargePersonGroup”、“PersonGroup”
快照的目标人脸订阅 ID 数组,由调用 Snapshot - Take 时创建快照的用户指定。 对于每个快照,只有 Snapshot - Take 的 applyScope 中包含的订阅才能应用它。
- createdTime
- DateTime
一个组合的 UTC 日期和时间字符串,用于描述快照的创建时间。 例如 2018-12-25T11:41:02.2331413Z。
- lastUpdateTime
- DateTime
一个组合的 UTC 日期和时间字符串,用于描述上次通过 Snapshot - Update 创建或更新快照的时间。 例如 2018-12-25T11:51:27.8705696Z。
- userData
- String
用户为任何目的指定了有关快照的数据。 长度不应超过 16KB。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈