PrivateStoreOfferCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}
  • Operation Id: PrivateStoreCollectionOffer_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Marketplace.PrivateStoreOfferResource> GetIfExists (string offerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Marketplace.PrivateStoreOfferResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Marketplace.PrivateStoreOfferResource>
Public Overridable Function GetIfExists (offerId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PrivateStoreOfferResource)

Parameters

offerId
String

The offer ID to update or delete.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

offerId is null.

Applies to