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

NetworkExtensions.GetNetworkManagers 方法

定义

重载

GetNetworkManagers(ResourceGroupResource)

获取 ResourceGroupResource 中 NetworkManagerResources 的集合。

GetNetworkManagers(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

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

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers
  • 操作IdNetworkManagers_ListBySubscription

GetNetworkManagers(ResourceGroupResource)

获取 ResourceGroupResource 中 NetworkManagerResources 的集合。

public static Azure.ResourceManager.Network.NetworkManagerCollection GetNetworkManagers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkManagers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.NetworkManagerCollection
<Extension()>
Public Function GetNetworkManagers (resourceGroupResource As ResourceGroupResource) As NetworkManagerCollection

参数

resourceGroupResource
ResourceGroupResource

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

返回

一个 对象,表示 NetworkManagerResources 的集合及其通过 NetworkManagerResource 执行的操作。

适用于

GetNetworkManagers(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

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

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

参数

subscriptionResource
SubscriptionResource

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

top
Nullable<Int32>

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

skipToken
String

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 NetworkManagerResource 集合。

适用于