Freigeben über


MachineLearningWorkspaceCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}
  • Vorgangs-IdWorkspaces_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource>> GetIfExistsAsync (string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource>>
Public Overridable Function GetIfExistsAsync (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of MachineLearningWorkspaceResource))

Parameter

workspaceName
String

Name des Azure Machine Learning-Arbeitsbereichs.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

workspaceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

workspaceName ist NULL.

Gilt für: