Dela via


Context Class

Provides the execution context for the stored procedure.

Inheritance Hierarchy

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

The Context type exposes the following members.

Constructors

  Name Description
Public method Context

Top

Properties

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

Top

Methods

  Name Description
Public methodStatic member CheckCancelled Throws an exception if the query has timed out or been canceled by the user.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public methodStatic member TraceEvent Raises a trace event with the specified information.

Top

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.