Compartir a través de


CosmosDBSqlStoredProcedureCollection.GetIfExists Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • 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 Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource> GetIfExists (string storedProcedureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBSqlStoredProcedureResource>
Public Overridable Function GetIfExists (storedProcedureName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(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