共用方式為


LivenessSessionItem Class

Definition

Session data returned for enumeration.

public class LivenessSessionItem : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.LivenessSessionItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.LivenessSessionItem>
type LivenessSessionItem = class
    interface IJsonModel<LivenessSessionItem>
    interface IPersistableModel<LivenessSessionItem>
Public Class LivenessSessionItem
Implements IJsonModel(Of LivenessSessionItem), IPersistableModel(Of LivenessSessionItem)
Inheritance
LivenessSessionItem
Implements

Properties

AuthTokenTimeToLiveInSeconds

Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600.

CreatedDateTime

DateTime when this session was created.

DeviceCorrelationId

Unique Guid per each end-user device. This is to provide rate limiting and anti-hammering. If 'deviceCorrelationIdSetInClient' is true in this request, this 'deviceCorrelationId' must be null.

Id

The unique ID to reference this session.

SessionExpired

Whether or not the session is expired.

SessionStartDateTime

DateTime when this session was started by the client.

Explicit Interface Implementations

IJsonModel<LivenessSessionItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LivenessSessionItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LivenessSessionItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LivenessSessionItem>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LivenessSessionItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to