IConnectedIdentityProvider::DisconnectIdentity method (identityprovider.h)

Disconnects an online identity from the current domain user.

Syntax

HRESULT DisconnectIdentity();

Return value

If the method succeeds, the method returns S_OK.

If the method fails, the method returns a Win32 error code.

Return code Description
S_OK
The method succeeded.
ERROR_NO_SUCH_USER
The domain user is not connected to an online identity.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header identityprovider.h

See also

IConnectedIdentityProvider