PurviewExtensions.SetDefaultAccount Method

Definition

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

public static Azure.Response<Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload> SetDefaultAccount(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload defaultAccountPayload, System.Threading.CancellationToken cancellationToken = default);
static member SetDefaultAccount : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Purview.Models.DefaultPurviewAccountPayload>
<Extension()>
Public Function SetDefaultAccount (tenantResource As TenantResource, defaultAccountPayload As DefaultPurviewAccountPayload, Optional cancellationToken As CancellationToken = Nothing) As 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