Classe Context
Provides the execution context for the stored procedure.
Hiérarchie d'héritage
System.Object
Microsoft.AnalysisServices.AdomdServer.Context
Espace de noms : Microsoft.AnalysisServices.AdomdServer
Assembly : msmgdsrv (en msmgdsrv.dll)
Syntaxe
'Déclaration
Public NotInheritable Class Context
'Utilisation
Dim instance As Context
public sealed class Context
public ref class Context sealed
[<SealedAttribute>]
type Context = class end
public final class Context
Le type Context expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
Context | Initializes a new instance of the Context class. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
ClientCultureInfo | Gets the culture for the current client. | |
Cubes | Gets a collection of cubes that are available in the current database or context. | |
CurrentConnection | Gets the current connection. | |
CurrentCube | Gets the current cube. | |
CurrentDatabaseName | Gets the current database name for the current session. | |
CurrentMiningModel | Gets the current mining model. | |
CurrentServerID | Gets the server identifier (server\instance) for the current session. | |
ExecuteForPrepare | Gets a value that indicates whether the stored procedure is being called for preparation purposes. | |
MiningModels | Gets the mining models in the current database. | |
MiningServices | Gets the mining services in the current database. | |
MiningStructures | Gets the mining structures in the current database. | |
Pass | Gets the pass number that the user-defined function (UDF) or stored procedure is running under. | |
Server | Gets the server object. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
CheckCancelled | Throws an exception if the query has timed out or been canceled by the user. | |
Equals | (hérité de Object.) | |
GetHashCode | (hérité de Object.) | |
GetType | (hérité de Object.) | |
ToString | (hérité de Object.) | |
TraceEvent | Raises a trace event with the specified information. |
Haut de la page
Notes
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.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.