Compartir a través de


Clase Context

Provides the execution context for the stored procedure.

Jerarquía de herencia

System. . :: . .Object
  Microsoft.AnalysisServices.AdomdServer..::..Context

Espacio de nombres:  Microsoft.AnalysisServices.AdomdServer
Ensamblado:  msmgdsrv (en msmgdsrv.dll)

Sintaxis

'Declaración
Public NotInheritable Class Context
'Uso
Dim instance As Context
public sealed class Context
public ref class Context sealed
[<SealedAttribute>]
type Context =  class end
public final class Context

El tipo Context expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público Context

Arriba

Propiedades

  Nombre Descripción
Propiedad públicaMiembro estático ClientCultureInfo Gets the culture for the current client.
Propiedad públicaMiembro estático Cubes Gets a collection of cubes that are available in the current database or context.
Propiedad públicaMiembro estático CurrentConnection
Propiedad públicaMiembro estático CurrentCube Gets the current cube.
Propiedad públicaMiembro estático CurrentDatabaseName Gets the current database name for the current session.
Propiedad públicaMiembro estático CurrentMiningModel Gets the current mining model.
Propiedad públicaMiembro estático CurrentServerID Gets the server identifier (server\instance) for the current session.
Propiedad públicaMiembro estático ExecuteForPrepare Gets a value that indicates whether the stored procedure is being called for preparation purposes.
Propiedad públicaMiembro estático MiningModels Gets the mining models in the current database.
Propiedad públicaMiembro estático MiningServices Gets the mining services in the current database.
Propiedad públicaMiembro estático MiningStructures Gets the mining structures in the current database.
Propiedad públicaMiembro estático Pass Gets the pass number that the user-defined function (UDF) or stored procedure is running under.
Propiedad públicaMiembro estático Server

Arriba

Métodos

  Nombre Descripción
Método públicoMiembro estático CheckCancelled Throws an exception if the query has timed out or been canceled by the user.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Object.)
Método públicoMiembro estático TraceEvent Raises a trace event with the specified information.

Arriba

Comentarios

The Context object provides a set of static properties that enable stored procedures to obtain the current execution context. All Microsoft.AnalysisServices.AdomdServer metadata objects can be obtained through the Context object, and are read-only.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.