AppServiceSourceControlCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Web/sourcecontrols/{sourceControlType}
  • Operation Id: GetSourceControl
  • Default Api Version: 2023-12-01
  • Resource: AppServiceSourceControlResource
public virtual Azure.NullableResponse<Azure.ResourceManager.AppService.AppServiceSourceControlResource> GetIfExists (string sourceControlType, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppService.AppServiceSourceControlResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppService.AppServiceSourceControlResource>
Public Overridable Function GetIfExists (sourceControlType As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AppServiceSourceControlResource)

Parameters

sourceControlType
String

Type of source control.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sourceControlType is an empty string, and was expected to be non-empty.

sourceControlType is null.

Applies to