IWorkspaceScriptable::DisconnectWorkspaceByFriendlyName method (workspaceruntime.h)

Disconnects all existing connections associated with the connection that has the specified name. It also deletes the corresponding entries from the RemoteApp and Desktop Connection store.

Syntax

HRESULT DisconnectWorkspaceByFriendlyName(
  [in] BSTR bstrWorkspaceFriendlyName
);

Parameters

[in] bstrWorkspaceFriendlyName

A string that contains the friendly name 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