Share via


DevCenterCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

devCenterName
String

The name of the devcenter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

devCenterName is null.

Applies to