CognitiveServicesAccountResource.GetCognitiveServicesProjectAsync 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.
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: 2025-06-01
- Resource: CognitiveServicesProjectResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>> GetCognitiveServicesProjectAsync(string projectName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCognitiveServicesProjectAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>>
override this.GetCognitiveServicesProjectAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>>
Public Overridable Function GetCognitiveServicesProjectAsync (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.