/// <summary>
 /// List virtual networks in a given lab.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <VirtualNetwork> List(this IVirtualNetworksOperations operations, string resourceGroupName, string labName, ODataQuery <VirtualNetwork> odataQuery = default(ODataQuery <VirtualNetwork>))
 {
     return(operations.ListAsync(resourceGroupName, labName, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all virtual networks in a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 public static IPage <VirtualNetwork> List(this IVirtualNetworksOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName).GetAwaiter().GetResult());
 }
Esempio n. 3
0
 /// <summary>
 /// Get a list of all virtual networks.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='inlineCount'>
 /// OData inline count parameter.
 /// </param>
 public static IPage <VirtualNetwork> List(this IVirtualNetworksOperations operations, ODataQuery <VirtualNetwork> odataQuery = default(ODataQuery <VirtualNetwork>), string inlineCount = default(string))
 {
     return(operations.ListAsync(odataQuery, inlineCount).GetAwaiter().GetResult());
 }