PeeringExtensions.GetPeeringServices 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
| Name | Description |
|---|---|
| GetPeeringServices(ResourceGroupResource) |
Gets a collection of PeeringServices in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPeeringServices() instead. </item> |
| GetPeeringServices(SubscriptionResource, CancellationToken) |
Lists all of the peerings under the given subscription. <item> Mocking. To mock this method, please mock GetPeeringServices(CancellationToken) instead. </item> |
GetPeeringServices(ResourceGroupResource)
- Source:
- PeeringExtensions.cs
- Source:
- PeeringExtensions.cs
Gets a collection of PeeringServices in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPeeringServices() instead. </item>
public static Azure.ResourceManager.Peering.PeeringServiceCollection GetPeeringServices(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPeeringServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Peering.PeeringServiceCollection
<Extension()>
Public Function GetPeeringServices (resourceGroupResource As ResourceGroupResource) As PeeringServiceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of PeeringServices and their operations over a PeeringServiceResource.
Exceptions
resourceGroupResource is null.
Applies to
GetPeeringServices(SubscriptionResource, CancellationToken)
- Source:
- PeeringExtensions.cs
- Source:
- PeeringExtensions.cs
Lists all of the peerings under the given subscription. <item> Mocking. To mock this method, please mock GetPeeringServices(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Peering.PeeringServiceResource> GetPeeringServices(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPeeringServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Peering.PeeringServiceResource>
<Extension()>
Public Function GetPeeringServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PeeringServiceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of PeeringServiceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.