/// <summary> /// Preview Only. The List Reserved IP operation retrieves the virtual /// IPs reserved for the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.VirtualNetworks.IReservedIPOperations. /// </param> /// <returns> /// Preview Only. The response structure for the Server List operation /// </returns> public static NetworkReservedIPListResponse List(this IReservedIPOperations operations) { try { return(operations.ListAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Preview Only. The List Reserved IP operation retrieves all of the /// virtual IPs reserved for the subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <returns> /// Preview Only. The response structure for the Server List operation. /// </returns> public static Task <NetworkReservedIPListResponse> ListAsync(this IReservedIPOperations operations) { return(operations.ListAsync(CancellationToken.None)); }