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

Credentials 构造函数

定义

重载

Credentials()

初始化 Credentials 类的新实例。

Credentials(String, String)

初始化 Credentials 类的新实例。

Credentials()

初始化 Credentials 类的新实例。

public Credentials ();
Public Sub New ()

适用于

Credentials(String, String)

初始化 Credentials 类的新实例。

public Credentials (string username, string password = default);
new Microsoft.Azure.Management.LabServices.Models.Credentials : string * string -> Microsoft.Azure.Management.LabServices.Models.Credentials
Public Sub New (username As String, Optional password As String = Nothing)

参数

username
String

登录实验室 VM 时要使用的用户名。

password
String

用户的密码。 这是 TemplateVM createOption 所必需的。

适用于