Udostępnij za pośrednictwem


AzureDevOpsConnectorCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}
  • Operation Id: AzureDevOpsConnector_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsConnectorResource> GetIfExists (string azureDevOpsConnectorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsConnectorResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.SecurityDevOps.AzureDevOpsConnectorResource>
Public Overridable Function GetIfExists (azureDevOpsConnectorName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AzureDevOpsConnectorResource)

Parameters

azureDevOpsConnectorName
String

Name of the AzureDevOps Connector.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

azureDevOpsConnectorName is null.

Applies to