NetworkExtensions.GetRouteTables Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetRouteTables(ResourceGroupResource) |
Gets a collection of RouteTableResources in the ResourceGroupResource. MockingTo mock this method, please mock GetRouteTables() instead. |
GetRouteTables(SubscriptionResource, CancellationToken) |
Gets all route tables in a subscription.
|
GetRouteTables(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of RouteTableResources in the ResourceGroupResource. MockingTo mock this method, please mock GetRouteTables() instead.
public static Azure.ResourceManager.Network.RouteTableCollection GetRouteTables (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetRouteTables : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.RouteTableCollection
<Extension()>
Public Function GetRouteTables (resourceGroupResource As ResourceGroupResource) As RouteTableCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of RouteTableResources and their operations over a RouteTableResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetRouteTables(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets all route tables in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables
- Operation Id: RouteTables_ListAll
- Default Api Version: 2024-03-01
- Resource: RouteTableResource
public static Azure.Pageable<Azure.ResourceManager.Network.RouteTableResource> GetRouteTables (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetRouteTables : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.RouteTableResource>
<Extension()>
Public Function GetRouteTables (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RouteTableResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of RouteTableResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET