Compartir a través de


ProviderShareSubscriptionCollection.ExistsAsync Método

Definición

Comprueba si el recurso existe en Azure.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}
  • IdProviderShareSubscriptions_GetByShare de operación
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string providerShareSubscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (providerShareSubscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parámetros

providerShareSubscriptionId
String

Para buscar shareSubscription.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

providerShareSubscriptionId es una cadena vacía y se esperaba que no estuviera vacía.

providerShareSubscriptionId es null.

Se aplica a