AdomdConnection.SessionID Property

Gets or sets the string identifier of the session that the AdomdConnection opened with the server.

命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

语法

声明
Public Property SessionID As String
public string SessionID { get; set; }
public:
property String^ SessionID {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_SessionID ()

/** @property */
public void set_SessionID (String value)
public function get SessionID () : String

public function set SessionID (value : String)

属性值

A string that contains a string identifier that represents the unique ID of a session.

异常

异常类型 条件
System.InvalidOperationException

The session ID was set after the connection was opened.

备注

The value of this property can only be set before the connection is opened.

Each session has a unique ID for connection purposes. You can use this property, along with the Open and Close methods, to pool sessions. Because an AdomdConnection can be destroyed without destroying the session, the session ID can be used to maintain state by reconnecting to a specific active session.

线程安全

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

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace