Freigeben über


DataMigrationServiceResource.GetProject(String, CancellationToken) Methode

Definition

Die Projektressource ist eine geschachtelte Ressource, die ein gespeichertes Migrationsprojekt darstellt. Die GET-Methode ruft Informationen zu einem Projekt ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}
  • Vorgang IdProjects_Get
public virtual Azure.Response<Azure.ResourceManager.DataMigration.ProjectResource> GetProject (string projectName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetProject : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataMigration.ProjectResource>
override this.GetProject : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataMigration.ProjectResource>
Public Overridable Function GetProject (projectName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ProjectResource)

Parameter

projectName
String

Der Name des Projekts.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

projectName ist NULL.

Gilt für: