Share via


ManagedServicesRegistrationCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.ManagedServices/registrationDefinitions/{registrationDefinitionId}
  • Operation Id: RegistrationDefinitions_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource>> GetIfExistsAsync (string registrationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource>>
Public Overridable Function GetIfExistsAsync (registrationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ManagedServicesRegistrationResource))

Parameters

registrationId
String

The GUID of the registration definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

registrationId is null.

Applies to