共用方式為


UserAccount Constructors

Definition

Overloads

UserAccount()

Default constructor to support mocking the UserAccount class.

UserAccount(String, String, Nullable<ElevationLevel>, LinuxUserConfiguration, WindowsUserConfiguration)

Initializes a new instance of the UserAccount class.

UserAccount()

Source:
UserAccount.cs

Default constructor to support mocking the UserAccount class.

protected UserAccount ();
Protected Sub New ()

Applies to

UserAccount(String, String, Nullable<ElevationLevel>, LinuxUserConfiguration, WindowsUserConfiguration)

Source:
UserAccount.cs

Initializes a new instance of the UserAccount class.

public UserAccount (string name, string password, Microsoft.Azure.Batch.Common.ElevationLevel? elevationLevel = default, Microsoft.Azure.Batch.LinuxUserConfiguration linuxUserConfiguration = default, Microsoft.Azure.Batch.WindowsUserConfiguration windowsUserConfiguration = default);
new Microsoft.Azure.Batch.UserAccount : string * string * Nullable<Microsoft.Azure.Batch.Common.ElevationLevel> * Microsoft.Azure.Batch.LinuxUserConfiguration * Microsoft.Azure.Batch.WindowsUserConfiguration -> Microsoft.Azure.Batch.UserAccount
Public Sub New (name As String, password As String, Optional elevationLevel As Nullable(Of ElevationLevel) = Nothing, Optional linuxUserConfiguration As LinuxUserConfiguration = Nothing, Optional windowsUserConfiguration As WindowsUserConfiguration = Nothing)

Parameters

name
String

The name of the user account.

password
String

The password for the user account.

elevationLevel
Nullable<ElevationLevel>

The elevation level of the user account.

linuxUserConfiguration
LinuxUserConfiguration

Additional properties used to create a user account on a Linux node.

windowsUserConfiguration
WindowsUserConfiguration

The Windows-specific user configuration for the user account.

Applies to