IWorkspaceScriptable::DisconnectWorkspace method (workspaceruntime.h)

Disconnects all existing connections associated with the specified connection ID. It also deletes the corresponding entries from the credential store.

Syntax

HRESULT DisconnectWorkspace(
  [in] BSTR bstrWorkspaceId
);

Parameters

[in] bstrWorkspaceId

A string that contains the connection ID of the connection to disconnect.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header workspaceruntime.h

See also

IWorkspaceScriptable

IWorkspaceScriptable2

IWorkspaceScriptable3