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

AIVisionFaceModelFactory.CreateLivenessSessionResult(String, String) Method

Definition

Initializes a new instance of CreateLivenessSessionResult.

public static Azure.AI.Vision.Face.CreateLivenessSessionResult CreateLivenessSessionResult (string sessionId = default, string authToken = default);
static member CreateLivenessSessionResult : string * string -> Azure.AI.Vision.Face.CreateLivenessSessionResult
Public Shared Function CreateLivenessSessionResult (Optional sessionId As String = Nothing, Optional authToken As String = Nothing) As CreateLivenessSessionResult

Parameters

sessionId
String

The unique session ID of the created session. It will expire 48 hours after it was created or may be deleted sooner using the corresponding Session DELETE operation.

authToken
String

Bearer token to provide authentication for the Vision SDK running on a client application. This Bearer token has limited permissions to perform only the required action and expires after the TTL time. It is also auditable.

Returns

A new CreateLivenessSessionResult instance for mocking.

Applies to