AdomdConnection.SessionID AdomdConnection.SessionID AdomdConnection.SessionID Property

Definition

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

public:
 property System::String ^ SessionID { System::String ^ get(); void set(System::String ^ value); };
public string SessionID { get; set; }
Public Property SessionID As String
Property Value

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

Exceptions

Remarks

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.

Applies to