CognitiveServicesProjectCollection.GetAsync(String, CancellationToken) Method

Definition

Returns a Cognitive Services project specified by the parameters.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}.
  • Operation Id. : Projects_Get.
  • Default Api Version. : 2026-03-15-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>> GetAsync(string projectName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>>
Public Overridable Function GetAsync (projectName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CognitiveServicesProjectResource))

Parameters

projectName
String

The name of Cognitive Services account's project.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

projectName is null.

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

Applies to