Udostępnij za pośrednictwem


ShareSubscriptionCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}
  • Operation Id: ShareSubscriptions_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.DataShare.ShareSubscriptionResource> GetIfExists (string shareSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DataShare.ShareSubscriptionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DataShare.ShareSubscriptionResource>
Public Overridable Function GetIfExists (shareSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ShareSubscriptionResource)

Parameters

shareSubscriptionName
String

The name of the shareSubscription.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

shareSubscriptionName is null.

Applies to