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

NetworkExtensions.GetNetworkManagersAsync 方法

定义

列出订阅中的所有网络管理器。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers
  • 操作IdNetworkManagers_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkManagerResource> GetNetworkManagersAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkManagersAsync : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkManagerResource>
<Extension()>
Public Function GetNetworkManagersAsync (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkManagerResource)

参数

subscriptionResource
SubscriptionResource

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

top
Nullable<Int32>

一个可选的查询参数,用于指定要由服务器返回的最大记录数。

skipToken
String

仅当上一个操作返回部分结果时,才使用 SkipToken。 如果以前的响应包含 nextLink 元素,则 nextLink 元素的值将包含 skipToken 参数,该参数指定要用于后续调用的起点。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 NetworkManagerResource ,可能需要多个服务请求进行迭代。

适用于