Partager via


IXtfUserClient::DeleteUserId

Removes a user, specified by user ID, from the console.

Syntax

public:
HRESULT DeleteUserId(
         UINT32 userId
)  

Parameters

userId
Type: UINT32

The user ID of the user to remove.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

If a user is signed in to the console, the user is signed out before being removed.

To delete a user by specifying an email address, use DeleteUser.

To delete all users, use DeleteAllUsers.

To add a user, use AddUser.

Requirements

Header: xtfuser.h

Library: xtfuser.lib

Supported platforms: Windows (for Xbox console tools)

See also

IXtfUserClient interface