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

RunCommandDocument 构造函数

定义

重载

RunCommandDocument()

初始化 RunCommandDocument 类的新实例。

RunCommandDocument(String, String, OperatingSystemTypes, String, String, IList<String>, IList<RunCommandParameterDefinition>)

初始化 RunCommandDocument 类的新实例。

RunCommandDocument()

初始化 RunCommandDocument 类的新实例。

public RunCommandDocument ();
Public Sub New ()

适用于

RunCommandDocument(String, String, OperatingSystemTypes, String, String, IList<String>, IList<RunCommandParameterDefinition>)

初始化 RunCommandDocument 类的新实例。

public RunCommandDocument (string schema, string id, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes osType, string label, string description, System.Collections.Generic.IList<string> script, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.RunCommandParameterDefinition> parameters = default);
new Microsoft.Azure.Management.Compute.Models.RunCommandDocument : string * string * Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.RunCommandParameterDefinition> -> Microsoft.Azure.Management.Compute.Models.RunCommandDocument
Public Sub New (schema As String, id As String, osType As OperatingSystemTypes, label As String, description As String, script As IList(Of String), Optional parameters As IList(Of RunCommandParameterDefinition) = Nothing)

参数

schema
String

VM 运行命令架构。

id
String

VM 运行命令 ID。

osType
OperatingSystemTypes

操作系统类型。 可能的值包括:“Windows”、“Linux”

label
String

VM 运行命令标签。

description
String

VM 运行命令说明。

script
IList<String>

要执行的脚本。

parameters
IList<RunCommandParameterDefinition>

脚本使用的参数。

适用于