Share via


UserActivityChannel.GetForUser(User) Method

Definition

Gets a UserActivityChannel object that can be used to get or create UserActivity objects for the specified user in the context of the current app.

public:
 static UserActivityChannel ^ GetForUser(User ^ user);
 static UserActivityChannel GetForUser(User const& user);
public static UserActivityChannel GetForUser(User user);
function getForUser(user)
Public Shared Function GetForUser (user As User) As UserActivityChannel

Parameters

user
User

The User that you want to get or create UserActivity objects for.

Returns

The UserActivityChannel object for the specified user.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to