GraphServicesExtensions.GetGraphServicesAccountResources 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
GetGraphServicesAccountResources(ResourceGroupResource) |
Gets a collection of GraphServicesAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetGraphServicesAccountResources() instead. |
GetGraphServicesAccountResources(SubscriptionResource, CancellationToken) |
Returns list of accounts belonging to a subscription.
|
GetGraphServicesAccountResources(ResourceGroupResource)
- Source:
- GraphServicesExtensions.cs
Gets a collection of GraphServicesAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetGraphServicesAccountResources() instead.
public static Azure.ResourceManager.GraphServices.GraphServicesAccountResourceCollection GetGraphServicesAccountResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetGraphServicesAccountResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.GraphServices.GraphServicesAccountResourceCollection
<Extension()>
Public Function GetGraphServicesAccountResources (resourceGroupResource As ResourceGroupResource) As GraphServicesAccountResourceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of GraphServicesAccountResources and their operations over a GraphServicesAccountResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetGraphServicesAccountResources(SubscriptionResource, CancellationToken)
- Source:
- GraphServicesExtensions.cs
Returns list of accounts belonging to a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts
- Operation Id: Accounts_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.GraphServices.GraphServicesAccountResource> GetGraphServicesAccountResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetGraphServicesAccountResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.GraphServices.GraphServicesAccountResource>
<Extension()>
Public Function GetGraphServicesAccountResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of GraphServicesAccountResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of GraphServicesAccountResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET