Freigeben über


SourceControlCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft ein SourceControl einer Container-App ab. Anforderungspfad: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName} Vorgangs-ID: ContainerAppsSourceControls_Get

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>> GetAsync (string sourceControlName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>>
Public Overridable Function GetAsync (sourceControlName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SourceControlResource))

Parameter

sourceControlName
String

Name der Container-App SourceControl.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

sourceControlName ist NULL.

Gilt für: