Condividi tramite


ManagedServicesRegistrationAssignmentCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.ManagedServices/registrationAssignments/{registrationAssignmentId}
  • Operation Id: RegistrationAssignments_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource>> GetIfExistsAsync (string registrationAssignmentId, bool? expandRegistrationDefinition = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource>>
override this.GetIfExistsAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource>>
Public Overridable Function GetIfExistsAsync (registrationAssignmentId As String, Optional expandRegistrationDefinition As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ManagedServicesRegistrationAssignmentResource))

Parameters

registrationAssignmentId
String

The GUID of the registration assignment.

expandRegistrationDefinition
Nullable<Boolean>

The flag indicating whether to return the registration definition details along with the registration assignment details.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

registrationAssignmentId is null.

Applies to