共用方式為


UserIdentity Class

Definition

The definition of the user identity under which the Task is run. Specify either the userName or autoUser property, but not both.

public class UserIdentity : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.UserIdentity>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.UserIdentity>
type UserIdentity = class
    interface IJsonModel<UserIdentity>
    interface IPersistableModel<UserIdentity>
Public Class UserIdentity
Implements IJsonModel(Of UserIdentity), IPersistableModel(Of UserIdentity)
Inheritance
UserIdentity
Implements

Constructors

UserIdentity()

Initializes a new instance of UserIdentity.

Properties

AutoUser

The auto user under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

Username

The name of the user identity under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

Explicit Interface Implementations

IJsonModel<UserIdentity>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<UserIdentity>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UserIdentity>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UserIdentity>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<UserIdentity>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to