Udostępnij za pośrednictwem


BillingBenefitsReservationOrderAliasCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.BillingBenefits/reservationOrderAliases/{reservationOrderAliasName}
  • Operation Id: ReservationOrderAlias_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.BillingBenefits.BillingBenefitsReservationOrderAliasResource> GetIfExists (string reservationOrderAliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.BillingBenefits.BillingBenefitsReservationOrderAliasResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.BillingBenefits.BillingBenefitsReservationOrderAliasResource>
Public Overridable Function GetIfExists (reservationOrderAliasName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of BillingBenefitsReservationOrderAliasResource)

Parameters

reservationOrderAliasName
String

Name of the reservation order alias.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

reservationOrderAliasName is null.

Applies to