PurviewExtensions.SetDefaultAccountAsync Method

Definition

Sets the default account for the scope. <item> Mocking. To mock this method, please mock SetDefaultAccountAsync(DefaultPurviewAccountPayload, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload>> SetDefaultAccountAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload defaultAccountPayload, System.Threading.CancellationToken cancellationToken = default);
static member SetDefaultAccountAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload>>
<Extension()>
Public Function SetDefaultAccountAsync (tenantResource As TenantResource, defaultAccountPayload As DefaultPurviewAccountPayload, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DefaultPurviewAccountPayload))

Parameters

tenantResource
TenantResource

The TenantResource the method will execute against.

defaultAccountPayload
DefaultPurviewAccountPayload

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource is null.

Applies to