共用方式為


PeeringExtensions.GetPeerAsns(SubscriptionResource) Method

Definition

Gets a collection of PeerAsnResources in the SubscriptionResource. MockingTo mock this method, please mock GetPeerAsns() instead.

public static Azure.ResourceManager.Peering.PeerAsnCollection GetPeerAsns (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource);
static member GetPeerAsns : Azure.ResourceManager.Resources.SubscriptionResource -> Azure.ResourceManager.Peering.PeerAsnCollection
<Extension()>
Public Function GetPeerAsns (subscriptionResource As SubscriptionResource) As PeerAsnCollection

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

Returns

An object representing collection of PeerAsnResources and their operations over a PeerAsnResource.

Exceptions

subscriptionResource is null.

Applies to