Compartir a través de


CosmosDBSqlContainerResource.GetCosmosDBSqlStoredProcedureAsync Método

Definición

Obtiene la instancia de SQL storedProcedure en una cuenta de base de datos de Azure Cosmos DB existente.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}
  • IdSqlResources_GetSqlStoredProcedure de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource>> GetCosmosDBSqlStoredProcedureAsync (string storedProcedureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCosmosDBSqlStoredProcedureAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource>>
override this.GetCosmosDBSqlStoredProcedureAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource>>
Public Overridable Function GetCosmosDBSqlStoredProcedureAsync (storedProcedureName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CosmosDBSqlStoredProcedureResource))

Parámetros

storedProcedureName
String

Nombre storedProcedure de Cosmos DB.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

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

storedProcedureName es null.

Se aplica a