Share via


UserDataProtectionManager.TryGetForUser(User) Method

Definition

Returns a UserDataProtectionManager instance for the specified user object. Windows.System.User.FindAllAsync() can be used to find users on the system. Caller must check if the returned object is null. If it null, UserDataProtectionManager is not supported on the system.

public:
 static UserDataProtectionManager ^ TryGetForUser(User ^ user);
 static UserDataProtectionManager TryGetForUser(User const& user);
public static UserDataProtectionManager TryGetForUser(User user);
function tryGetForUser(user)
Public Shared Function TryGetForUser (user As User) As UserDataProtectionManager

Parameters

user
User

Returns

Applies to