NetworkExtensions.GetRouteFilters 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
GetRouteFilters(ResourceGroupResource) |
Gets a collection of RouteFilterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetRouteFilters() instead. |
GetRouteFilters(SubscriptionResource, CancellationToken) |
Gets all route filters in a subscription.
|
GetRouteFilters(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of RouteFilterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetRouteFilters() instead.
public static Azure.ResourceManager.Network.RouteFilterCollection GetRouteFilters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetRouteFilters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.RouteFilterCollection
<Extension()>
Public Function GetRouteFilters (resourceGroupResource As ResourceGroupResource) As RouteFilterCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of RouteFilterResources and their operations over a RouteFilterResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetRouteFilters(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets all route filters in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters
- Operation Id: RouteFilters_List
- Default Api Version: 2023-11-01
- Resource: RouteFilterResource
public static Azure.Pageable<Azure.ResourceManager.Network.RouteFilterResource> GetRouteFilters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetRouteFilters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.RouteFilterResource>
<Extension()>
Public Function GetRouteFilters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RouteFilterResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of RouteFilterResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET