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

IContainerGroup.ExecuteCommandAsync 方法

定义

为容器组中的特定容器实例启动 exec 命令。

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerInstance.Fluent.IContainerExecResponse> ExecuteCommandAsync (string containerName, string command, int row, int column, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteCommandAsync : string * string * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerInstance.Fluent.IContainerExecResponse>
Public Function ExecuteCommandAsync (containerName As String, command As String, row As Integer, column As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IContainerExecResponse)

参数

containerName
String

容器实例名称。

command
String

要执行的命令。

row
Int32

终端的行大小。

column
Int32

终端的列大小。

cancellationToken
CancellationToken

返回

适用于