IWorkspaceScriptable::OnAuthenticated method (workspaceruntime.h)

Marks the authentication of user credentials for the connection ID, and subsequently shows the connect notification in the taskbar notification area. The OnAuthenticated method also resets the credential time-out.

Syntax

HRESULT OnAuthenticated(
  [in] BSTR bstrWorkspaceId,
  [in] BSTR bstrUserName
);

Parameters

[in] bstrWorkspaceId

A string that contains the connection ID.

[in] bstrUserName

A string that contains a user name.

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