Freigeben über


MachineLearningWorkspaceCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}
  • Vorgang IdWorkspaces_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource> GetIfExists (string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningWorkspaceResource>
Public Overridable Function GetIfExists (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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: