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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。