IXtfUserClient::DeleteUser Method

Removes a user with specified email address from the console.

Syntax

public:
HRESULT DeleteUser(
         LPCWSTR userName
)  

Parameters

userName
Type: LPCWSTR 

The email address used to add the user to the console.

Return value

Type: HRESULT 

HRESULT success or error code.

Remarks

A signed-in user is signed out before being removed from the console.

Requirements

Header: Declared in xtfuser.h.

Library: Use xtfuser.lib.