User.GetFromId(String) Method

Definition

Gets a user with a given Id.

public:
 static User ^ GetFromId(Platform::String ^ nonRoamableId);
 static User GetFromId(winrt::hstring const& nonRoamableId);
public static User GetFromId(string nonRoamableId);
function getFromId(nonRoamableId)
Public Shared Function GetFromId (nonRoamableId As String) As User

Parameters

nonRoamableId
String

Platform::String

winrt::hstring

The Id of the user to get.

Returns

The user with the given Id.

Remarks

If no user with the given nonRoamableId is found, this method returns null. Always check the return value before using it.

A nonRoamableId can be obtained from the NonRoamableId property of a User object. This identifier is device-specific and is not roamed to other devices.

Applies to