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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for