Delen via


CommunicationExtensions.GetEmailServiceResource Method

Definition

Overloads

GetEmailServiceResource(ResourceGroupResource, String, CancellationToken)

Get the EmailService and its properties.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}
  • Operation Id: EmailServices_Get
  • Default Api Version: 2023-04-01
  • Resource: EmailServiceResource
GetEmailServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing an EmailServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an EmailServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetEmailServiceResource(ResourceIdentifier) instead.

GetEmailServiceResource(ResourceGroupResource, String, CancellationToken)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Get the EmailService and its properties.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}
  • Operation Id: EmailServices_Get
  • Default Api Version: 2023-04-01
  • Resource: EmailServiceResource
public static Azure.Response<Azure.ResourceManager.Communication.EmailServiceResource> GetEmailServiceResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string emailServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetEmailServiceResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.EmailServiceResource>
<Extension()>
Public Function GetEmailServiceResource (resourceGroupResource As ResourceGroupResource, emailServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of EmailServiceResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

emailServiceName
String

The name of the EmailService resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or emailServiceName is null.

emailServiceName is an empty string, and was expected to be non-empty.

Applies to

GetEmailServiceResource(ArmClient, ResourceIdentifier)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Gets an object representing an EmailServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an EmailServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetEmailServiceResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Communication.EmailServiceResource GetEmailServiceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetEmailServiceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Communication.EmailServiceResource
<Extension()>
Public Function GetEmailServiceResource (client As ArmClient, id As ResourceIdentifier) As EmailServiceResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a EmailServiceResource object.

Exceptions

client is null.

Applies to