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

NetworkExtensions.GetManagementGroupNetworkManagerConnectionAsync 方法

定义

获取此管理组创建的指定连接。

  • 请求路径/提供程序/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}
  • 操作IdManagementGroupNetworkManagerConnections_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>> GetManagementGroupNetworkManagerConnectionAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string networkManagerConnectionName, System.Threading.CancellationToken cancellationToken = default);
static member GetManagementGroupNetworkManagerConnectionAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>>
<Extension()>
Public Function GetManagementGroupNetworkManagerConnectionAsync (managementGroupResource As ManagementGroupResource, networkManagerConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagementGroupNetworkManagerConnectionResource))

参数

managementGroupResource
ManagementGroupResource

方法 ManagementGroupResource 将对其执行的实例。

networkManagerConnectionName
String

网络管理器连接的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

networkManagerConnectionName 是一个空字符串,预期为非空。

networkManagerConnectionName 为 null。

适用于