ManagedServicesRegistrationAssignmentCollection.GetIfExists Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get details for this resource from the service.
- Request Path: /{scope}/providers/Microsoft.ManagedServices/registrationAssignments/{registrationAssignmentId}
- Operation Id: RegistrationAssignments_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource> GetIfExists (string registrationAssignmentId, bool? expandRegistrationDefinition = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * Nullable<bool> * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource>
override this.GetIfExists : string * Nullable<bool> * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedServices.ManagedServicesRegistrationAssignmentResource>
Public Overridable Function GetIfExists (registrationAssignmentId As String, Optional expandRegistrationDefinition As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedServicesRegistrationAssignmentResource)
Parameters
- registrationAssignmentId
- String
The GUID of the registration assignment.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET