Skip to content

UserPreferenceRepository.GetUserId method

Gets the id of the current user, converted to the type of the user ID field, or null when the user has no identifier, e.g. when not logged in, as preferences are kept per user.

protected virtual object? GetUserId()

See Also