共用方式為


CommunicationExtensions.GetEmailServiceResources Method

Definition

Overloads

GetEmailServiceResources(ResourceGroupResource)

Gets a collection of EmailServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetEmailServiceResources() instead.

GetEmailServiceResources(SubscriptionResource, CancellationToken)

Handles requests to list all resources in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Communication/emailServices
  • Operation Id: EmailServices_ListBySubscription
  • Default Api Version: 2023-04-01
  • Resource: EmailServiceResource

GetEmailServiceResources(ResourceGroupResource)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Gets a collection of EmailServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetEmailServiceResources() instead.

public static Azure.ResourceManager.Communication.EmailServiceResourceCollection GetEmailServiceResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetEmailServiceResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Communication.EmailServiceResourceCollection
<Extension()>
Public Function GetEmailServiceResources (resourceGroupResource As ResourceGroupResource) As EmailServiceResourceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of EmailServiceResources and their operations over a EmailServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetEmailServiceResources(SubscriptionResource, CancellationToken)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Handles requests to list all resources in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Communication/emailServices
  • Operation Id: EmailServices_ListBySubscription
  • Default Api Version: 2023-04-01
  • Resource: EmailServiceResource
public static Azure.Pageable<Azure.ResourceManager.Communication.EmailServiceResource> GetEmailServiceResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEmailServiceResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Communication.EmailServiceResource>
<Extension()>
Public Function GetEmailServiceResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EmailServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to