MaccResource.GetContributor(String, CancellationToken) Method

Definition

Get a contributor for primary service admin.

public virtual Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource> GetContributor(string contributorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContributor : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>
override this.GetContributor : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>
Public Overridable Function GetContributor (contributorName As String, Optional cancellationToken As CancellationToken = Nothing) As 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