PeeringExtensions.GetPeerings Method

Definition

Overloads

Name Description
GetPeerings(ResourceGroupResource)

Gets a collection of Peerings in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPeerings() instead. </item>

GetPeerings(SubscriptionResource, CancellationToken)

Lists all of the peerings under the given subscription. <item> Mocking. To mock this method, please mock GetPeerings(CancellationToken) instead. </item>

GetPeerings(ResourceGroupResource)

Source:
PeeringExtensions.cs
Source:
PeeringExtensions.cs

Gets a collection of Peerings in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetPeerings() instead. </item>

public static Azure.ResourceManager.Peering.PeeringCollection GetPeerings(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPeerings : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Peering.PeeringCollection
<Extension()>
Public Function GetPeerings (resourceGroupResource As ResourceGroupResource) As PeeringCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of Peerings and their operations over a PeeringResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPeerings(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 GetPeerings(CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource> GetPeerings(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPeerings : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource>
<Extension()>
Public Function GetPeerings (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PeeringResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of PeeringResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to