Share via


DomainRegistrationExtensions.GetAppServiceDomainAsync Method

Definition

Description for Get a domain. <item> Mocking. To mock this method, please mock GetAppServiceDomainAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DomainRegistration.AppServiceDomainResource>> GetAppServiceDomainAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string domainName, System.Threading.CancellationToken cancellationToken = default);
static member GetAppServiceDomainAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DomainRegistration.AppServiceDomainResource>>
<Extension()>
Public Function GetAppServiceDomainAsync (resourceGroupResource As ResourceGroupResource, domainName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AppServiceDomainResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

domainName
String

Name of the domain.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to