Context 类

Provides the execution context for the stored procedure.

继承层次结构

System.Object
  Microsoft.AnalysisServices.AdomdServer.Context

命名空间:  Microsoft.AnalysisServices.AdomdServer
程序集:  msmgdsrv(在 msmgdsrv.dll 中)

语法

声明
Public NotInheritable Class Context
用法
Dim instance As Context
public sealed class Context
public ref class Context sealed
[<SealedAttribute>]
type Context =  class end
public final class Context

Context 类型公开以下成员。

构造函数

  名称 说明
公共方法 Context Initializes a new instance of the Context class.

页首

属性

  名称 说明
公共属性静态成员 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.

页首

方法

  名称 说明
公共方法静态成员 CheckCancelled Throws an exception if the query has timed out or been canceled by the user.
公共方法 Equals (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 ToString (从 Object 继承。)
公共方法静态成员 TraceEvent Raises a trace event with the specified information.

页首

注释

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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.AnalysisServices.AdomdServer 命名空间