Поделиться через


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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace