다음을 통해 공유


IAccountsOperations.AddRootCollectionAdminWithHttpMessagesAsync Method

Definition

Add the administrator for root collection.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> AddRootCollectionAdminWithHttpMessagesAsync (string resourceGroupName, string accountName, Microsoft.Azure.Management.Purview.Models.CollectionAdminUpdate collectionAdminUpdate, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddRootCollectionAdminWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Purview.Models.CollectionAdminUpdate * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function AddRootCollectionAdminWithHttpMessagesAsync (resourceGroupName As String, accountName As String, collectionAdminUpdate As CollectionAdminUpdate, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
String

The resource group name.

accountName
String

The name of the account.

collectionAdminUpdate
CollectionAdminUpdate

The collection admin update payload.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Remarks

Add the administrator for root collection associated with this account.

Applies to