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


AdomdConnection.Close Method (Boolean)

Closes the connection to the database, indicating whether to end the session.

Пространство имен: Microsoft.AnalysisServices.AdomdClient
Сборка: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

Синтаксис

'Декларация
Public Sub Close ( _
    endSession As Boolean _
)
public void Close (
    bool endSession
)
public:
void Close (
    bool endSession
)
public void Close (
    boolean endSession
)
public function Close (
    endSession : boolean
)

Параметры

  • endSession
    A Boolean that indicates whether to end the session associated with the AdomdConnection.

Замечания

If the Close method is called without specifying the value of the endSession parameter, or if the endSession parameter is set to true, both the connection and the session associated with the connection are closed. If the Close method is called with the endSession parameter set to false, the session associated with the AdomdConnection remains active, but the connection is closed.

If the Dispose method is called with the disposing parameter set to true, the Close method is called without specifying the value of the endSession parameter.

You can reconnect to an active session after calling this method by setting the SessionID property to a valid active session ID and then calling the Open method.

Синхронизация потоков

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