Freigeben über


Context-Klasse

Provides the execution context for the stored procedure.

Vererbungshierarchie

System.Object
  Microsoft.AnalysisServices.AdomdServer.Context

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Syntax

'Declaration
Public NotInheritable Class Context
'Usage
Dim instance As Context
public sealed class Context
public ref class Context sealed
[<SealedAttribute>]
type Context =  class end
public final class Context

Der Context-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode Context Initializes a new instance of the Context class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche EigenschaftStatisches Element ClientCultureInfo Gets the culture for the current client.
Öffentliche EigenschaftStatisches Element Cubes Gets a collection of cubes that are available in the current database or context.
Öffentliche EigenschaftStatisches Element CurrentConnection Gets the current connection.
Öffentliche EigenschaftStatisches Element CurrentCube Gets the current cube.
Öffentliche EigenschaftStatisches Element CurrentDatabaseName Gets the current database name for the current session.
Öffentliche EigenschaftStatisches Element CurrentMiningModel Gets the current mining model.
Öffentliche EigenschaftStatisches Element CurrentServerID Gets the server identifier (server\instance) for the current session.
Öffentliche EigenschaftStatisches Element ExecuteForPrepare Gets a value that indicates whether the stored procedure is being called for preparation purposes.
Öffentliche EigenschaftStatisches Element MiningModels Gets the mining models in the current database.
Öffentliche EigenschaftStatisches Element MiningServices Gets the mining services in the current database.
Öffentliche EigenschaftStatisches Element MiningStructures Gets the mining structures in the current database.
Öffentliche EigenschaftStatisches Element Pass Gets the pass number that the user-defined function (UDF) or stored procedure is running under.
Öffentliche EigenschaftStatisches Element Server Gets the server object.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche MethodeStatisches Element CheckCancelled Throws an exception if the query has timed out or been canceled by the user.
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche MethodeStatisches Element TraceEvent Raises a trace event with the specified information.

Zum Anfang

Hinweise

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.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.AnalysisServices.AdomdServer-Namespace