CommunicationExtensions.GetCommunicationServiceResources 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
GetCommunicationServiceResources(ResourceGroupResource) |
Gets a collection of CommunicationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCommunicationServiceResources() instead. |
GetCommunicationServiceResources(SubscriptionResource, CancellationToken) |
Handles requests to list all resources in a subscription.
|
GetCommunicationServiceResources(ResourceGroupResource)
- Source:
- CommunicationExtensions.cs
- Source:
- CommunicationExtensions.cs
Gets a collection of CommunicationServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCommunicationServiceResources() instead.
public static Azure.ResourceManager.Communication.CommunicationServiceResourceCollection GetCommunicationServiceResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCommunicationServiceResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Communication.CommunicationServiceResourceCollection
<Extension()>
Public Function GetCommunicationServiceResources (resourceGroupResource As ResourceGroupResource) As CommunicationServiceResourceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of CommunicationServiceResources and their operations over a CommunicationServiceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetCommunicationServiceResources(SubscriptionResource, CancellationToken)
- Source:
- CommunicationExtensions.cs
- Source:
- CommunicationExtensions.cs
Handles requests to list all resources in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices
- Operation Id: CommunicationServices_ListBySubscription
- Default Api Version: 2023-04-01
- Resource: CommunicationServiceResource
public static Azure.Pageable<Azure.ResourceManager.Communication.CommunicationServiceResource> GetCommunicationServiceResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunicationServiceResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Communication.CommunicationServiceResource>
<Extension()>
Public Function GetCommunicationServiceResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CommunicationServiceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CommunicationServiceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.