MaccResource.GetContributorAsync(String, CancellationToken) Method

Definition

Get a contributor for primary service admin.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>> GetContributorAsync(string contributorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContributorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>>
override this.GetContributorAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>>
Public Overridable Function GetContributorAsync (contributorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContributorResource))

Parameters

contributorName
String

Unique name of contributor in the format {contributorCloudSubId}{resourceGroupName}{nameInContributorTenant}.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

contributorName is null.

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

Applies to