Share via


ManagedServicesRegistrationCollection.GetIfExists 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 Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource> GetIfExists (string registrationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationResource>
Public Overridable Function GetIfExists (registrationId As String, Optional cancellationToken As CancellationToken = Nothing) As 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