ContributorCollection.GetAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a contributor for primary service admin
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}/contributors/{contributorName}.
- Operation Id. : Contributors_GetFromPrimary.
- Default Api Version. : 2025-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>> GetAsync(string contributorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.BillingBenefits.ContributorResource>>
Public Overridable Function GetAsync (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.