Compartir a través de


DataShareAccountResource.GetDataShareAsync(String, CancellationToken) Método

Definición

Obtener un recurso compartido

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

Parámetros

shareName
String

Nombre del recurso compartido que se va a recuperar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

shareName es una cadena vacía y se espera que no esté vacía.

shareName es null.

Se aplica a