HiNC-2025-win-desktop-Deploy/App/wwwroot/HiAPI-docsite/api/Hi.SqliteUtils.SqliteUserStore-1.html
2026-01-31 17:18:04 +08:00

2065 lines
89 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class SqliteUserStore&lt;TUser&gt; | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class SqliteUserStore&lt;TUser&gt; | HiAPI-C# 2025 ">
<meta name="description" content="SQLite-based user store for ASP.NET Core Identity.">
<link rel="icon" href="../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="Hi.SqliteUtils.SqliteUserStore`1">
<h1 id="Hi_SqliteUtils_SqliteUserStore_1" data-uid="Hi.SqliteUtils.SqliteUserStore`1" class="text-break">
Class SqliteUserStore&lt;TUser&gt;
</h1>
<div class="facts text-secondary">
<dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.SqliteUtils.html">SqliteUtils</a></dd></dl>
<dl><dt>Assembly</dt><dd>HiNc.dll</dd></dl>
</div>
<div class="markdown summary"><p>SQLite-based user store for ASP.NET Core Identity.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class SqliteUserStore&lt;TUser&gt; : IUserStore&lt;TUser&gt;, IUserPasswordStore&lt;TUser&gt;, IUserRoleStore&lt;TUser&gt;, IUserEmailStore&lt;TUser&gt;, IUserPhoneNumberStore&lt;TUser&gt;, IUserTwoFactorStore&lt;TUser&gt;, IUserLockoutStore&lt;TUser&gt;, IUserSecurityStampStore&lt;TUser&gt;, IQueryableUserStore&lt;TUser&gt;, IUserStore&lt;TUser&gt;, IDisposable where TUser : SqliteIdentityUser, new()</code></pre>
</div>
<h4 class="section">Type Parameters</h4>
<dl class="parameters">
<dt><code>TUser</code></dt>
<dd><p>The type of user.</p>
</dd>
</dl>
<dl class="typelist inheritance">
<dt>Inheritance</dt>
<dd>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
<div><span class="xref">SqliteUserStore&lt;TUser&gt;</span></div>
</dd>
</dl>
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserstore-1">IUserStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserpasswordstore-1">IUserPasswordStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserrolestore-1">IUserRoleStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuseremailstore-1">IUserEmailStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserphonenumberstore-1">IUserPhoneNumberStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iusertwofactorstore-1">IUserTwoFactorStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserlockoutstore-1">IUserLockoutStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iusersecuritystampstore-1">IUserSecurityStampStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iqueryableuserstore-1">IQueryableUserStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.iuserstore-1">IUserStore</a>&lt;TUser&gt;</div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
</dd>
</dl>
<dl class="typelist inheritedMembers">
<dt>Inherited Members</dt>
<dd>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
</div>
</dd></dl>
<dl class="typelist extensionMethods">
<dt>Extension Methods</dt>
<dd>
<div>
<a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate&lt;TSelf&gt;(TSelf, params object[])</a>
</div>
<div>
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__1___0_System_Action___0__">InvokeUtil.SelfInvoke&lt;TSrc&gt;(TSrc, Action&lt;TSrc&gt;)</a>
</div>
<div>
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke&lt;TSrc, TDst&gt;(TSrc, Func&lt;TSrc, TDst&gt;)</a>
</div>
<div>
<a class="xref" href="Hi.Coloring.ColorUtil.html#Hi_Coloring_ColorUtil_GetGloomyColor_System_Object_System_Double_System_Double_">ColorUtil.GetGloomyColor(object, double, double)</a>
</div>
<div>
<a class="xref" href="Hi.Common.NameUtil.html#Hi_Common_NameUtil_GetSelectionName_System_Object_">NameUtil.GetSelectionName(object)</a>
</div>
<div>
<a class="xref" href="Hi.Common.StringUtil.html#Hi_Common_StringUtil_GetPropertyStringIfToStringNotOverloaded_System_Object_System_Boolean_System_Boolean_">StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool)</a>
</div>
<div>
<a class="xref" href="Hi.Parallels.LockUtil.html#Hi_Parallels_LockUtil_Lock_System_Object_">LockUtil.Lock(object)</a>
</div>
</dd></dl>
<h2 class="section" id="constructors">Constructors
</h2>
<a id="Hi_SqliteUtils_SqliteUserStore_1__ctor_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.#ctor*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1__ctor_Hi_SqliteUtils_SqliteIdentityStorage_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.#ctor(Hi.SqliteUtils.SqliteIdentityStorage)">
SqliteUserStore(SqliteIdentityStorage)
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SqliteUserStore(SqliteIdentityStorage storage)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>storage</code> <a class="xref" href="Hi.SqliteUtils.SqliteIdentityStorage.html">SqliteIdentityStorage</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="Hi_SqliteUtils_SqliteUserStore_1_Users_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.Users*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_Users" data-uid="Hi.SqliteUtils.SqliteUserStore`1.Users">
Users
</h3>
<div class="markdown level1 summary"><p>Returns an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.iqueryable-1">IQueryable&lt;T&gt;</a> collection of users.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IQueryable&lt;TUser&gt; Users { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.iqueryable-1">IQueryable</a>&lt;TUser&gt;</dt>
<dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.iqueryable-1">IQueryable&lt;T&gt;</a> collection of users.</p>
</dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_SqliteUtils_SqliteUserStore_1_AddToRoleAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.AddToRoleAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_AddToRoleAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.AddToRoleAsync(`0,System.String,System.Threading.CancellationToken)">
AddToRoleAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Add the specified <code class="paramref">user</code> to the named role.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task AddToRoleAsync(TUser user, string roleName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to add to the named role.</p>
</dd>
<dt><code>roleName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The name of the role to add the user to.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_CreateAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.CreateAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_CreateAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.CreateAsync(`0,System.Threading.CancellationToken)">
CreateAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Creates the specified <code class="paramref">user</code> in the user store.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;IdentityResult&gt; CreateAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to create.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a> of the creation operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_DeleteAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.DeleteAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_DeleteAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.DeleteAsync(`0,System.Threading.CancellationToken)">
DeleteAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Deletes the specified <code class="paramref">user</code> from the user store.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;IdentityResult&gt; DeleteAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to delete.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a> of the delete operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_Dispose_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.Dispose*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_Dispose" data-uid="Hi.SqliteUtils.SqliteUserStore`1.Dispose">
Dispose()
</h3>
<div class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Dispose()</code></pre>
</div>
<a id="Hi_SqliteUtils_SqliteUserStore_1_FindByEmailAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByEmailAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_FindByEmailAsync_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByEmailAsync(System.String,System.Threading.CancellationToken)">
FindByEmailAsync(string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the user, if any, associated with the specified, normalized email address.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;TUser&gt; FindByEmailAsync(string normalizedEmail, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>normalizedEmail</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The normalized email address to return the user for.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;TUser&gt;</dt>
<dd><p>The task object containing the results of the asynchronous lookup operation, the user if any associated with the specified normalized email address.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_FindByIdAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByIdAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_FindByIdAsync_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByIdAsync(System.String,System.Threading.CancellationToken)">
FindByIdAsync(string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Finds and returns a user, if any, who has the specified <code class="paramref">userId</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;TUser&gt; FindByIdAsync(string userId, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>userId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The user ID to search for.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;TUser&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the user matching the specified <code class="paramref">userId</code> if it exists.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_FindByNameAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByNameAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_FindByNameAsync_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.FindByNameAsync(System.String,System.Threading.CancellationToken)">
FindByNameAsync(string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Finds and returns a user, if any, who has the specified normalized user name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;TUser&gt; FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>normalizedUserName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The normalized user name to search for.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;TUser&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the user matching the specified <code class="paramref">normalizedUserName</code> if it exists.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetAccessFailedCountAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetAccessFailedCountAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetAccessFailedCountAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetAccessFailedCountAsync(`0,System.Threading.CancellationToken)">
GetAccessFailedCountAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Retrieves the current failed access count for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;int&gt; GetAccessFailedCountAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose failed access count should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the failed access count.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetEmailAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetEmailAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetEmailAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetEmailAsync(`0,System.Threading.CancellationToken)">
GetEmailAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the email address for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetEmailAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email should be returned.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The task object containing the results of the asynchronous operation, the email address for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetEmailConfirmedAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetEmailConfirmedAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetEmailConfirmedAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetEmailConfirmedAsync(`0,System.Threading.CancellationToken)">
GetEmailConfirmedAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets a flag indicating whether the email address for the specified <code class="paramref">user</code> has been verified, true if the email address is verified otherwise
false.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; GetEmailConfirmedAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email confirmation status should be returned.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The task object containing the results of the asynchronous operation, a flag indicating whether the email address for the specified <code class="paramref">user</code>
has been confirmed or not.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetLockoutEnabledAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetLockoutEnabledAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetLockoutEnabledAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetLockoutEnabledAsync(`0,System.Threading.CancellationToken)">
GetLockoutEnabledAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Retrieves a flag indicating whether user lockout can enabled for the specified user.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; GetLockoutEnabledAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose ability to be locked out should be returned.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, true if a user can be locked out, otherwise false.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetLockoutEndDateAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetLockoutEndDateAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetLockoutEndDateAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetLockoutEndDateAsync(`0,System.Threading.CancellationToken)">
GetLockoutEndDateAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the last <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetimeoffset">DateTimeOffset</a> a user's last lockout expired, if any.
Any time in the past should be indicates a user is not locked out.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;DateTimeOffset?&gt; GetLockoutEndDateAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose lockout date should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetimeoffset">DateTimeOffset</a>?&gt;</dt>
<dd><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task&lt;TResult&gt;</a> that represents the result of the asynchronous query, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetimeoffset">DateTimeOffset</a> containing the last time
a user's lockout expired, if any.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetNormalizedEmailAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetNormalizedEmailAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetNormalizedEmailAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetNormalizedEmailAsync(`0,System.Threading.CancellationToken)">
GetNormalizedEmailAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Returns the normalized email for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetNormalizedEmailAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email address to retrieve.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The task object containing the results of the asynchronous lookup operation, the normalized email address if any associated with the specified user.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetNormalizedUserNameAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetNormalizedUserNameAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetNormalizedUserNameAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetNormalizedUserNameAsync(`0,System.Threading.CancellationToken)">
GetNormalizedUserNameAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the normalized user name for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetNormalizedUserNameAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose normalized name should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the normalized user name for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetPasswordHashAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPasswordHashAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetPasswordHashAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPasswordHashAsync(`0,System.Threading.CancellationToken)">
GetPasswordHashAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the password hash for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetPasswordHashAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose password hash to retrieve.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, returning the password hash for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetPhoneNumberAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPhoneNumberAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetPhoneNumberAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPhoneNumberAsync(`0,System.Threading.CancellationToken)">
GetPhoneNumberAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the telephone number, if any, for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetPhoneNumberAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose telephone number should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the user's telephone number, if any.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetPhoneNumberConfirmedAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPhoneNumberConfirmedAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetPhoneNumberConfirmedAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetPhoneNumberConfirmedAsync(`0,System.Threading.CancellationToken)">
GetPhoneNumberConfirmedAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets a flag indicating whether the specified <code class="paramref">user</code>'s telephone number has been confirmed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; GetPhoneNumberConfirmedAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to return a flag for, indicating whether their telephone number is confirmed.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, returning true if the specified <code class="paramref">user</code> has a confirmed
telephone number otherwise false.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetRolesAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetRolesAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetRolesAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetRolesAsync(`0,System.Threading.CancellationToken)">
GetRolesAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets a list of role names the specified <code class="paramref">user</code> belongs to.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;IList&lt;string&gt;&gt; GetRolesAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose role names to retrieve.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing a list of role names.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetSecurityStampAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetSecurityStampAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetSecurityStampAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetSecurityStampAsync(`0,System.Threading.CancellationToken)">
GetSecurityStampAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Get the security stamp for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetSecurityStampAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose security stamp should be set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the security stamp for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetTwoFactorEnabledAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetTwoFactorEnabledAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetTwoFactorEnabledAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetTwoFactorEnabledAsync(`0,System.Threading.CancellationToken)">
GetTwoFactorEnabledAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Returns a flag indicating whether the specified <code class="paramref">user</code> has two factor authentication enabled or not,
as an asynchronous operation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; GetTwoFactorEnabledAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose two factor authentication enabled status should be set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing a flag indicating whether the specified
<code class="paramref">user</code> has two factor authentication enabled or not.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetUserIdAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUserIdAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetUserIdAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUserIdAsync(`0,System.Threading.CancellationToken)">
GetUserIdAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the user identifier for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetUserIdAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose identifier should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the identifier for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetUserNameAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUserNameAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetUserNameAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUserNameAsync(`0,System.Threading.CancellationToken)">
GetUserNameAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets the user name for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;string&gt; GetUserNameAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose name should be retrieved.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the name for the specified <code class="paramref">user</code>.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_GetUsersInRoleAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUsersInRoleAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_GetUsersInRoleAsync_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.GetUsersInRoleAsync(System.String,System.Threading.CancellationToken)">
GetUsersInRoleAsync(string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Returns a list of Users who are members of the named role.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;IList&lt;TUser&gt;&gt; GetUsersInRoleAsync(string roleName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>roleName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The name of the role whose membership should be returned.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TUser&gt;&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing a list of users who are in the named role.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_HasPasswordAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.HasPasswordAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_HasPasswordAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.HasPasswordAsync(`0,System.Threading.CancellationToken)">
HasPasswordAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Gets a flag indicating whether the specified <code class="paramref">user</code> has a password.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; HasPasswordAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to return a flag for, indicating whether they have a password or not.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, returning true if the specified <code class="paramref">user</code> has a password
otherwise false.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_IncrementAccessFailedCountAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.IncrementAccessFailedCountAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_IncrementAccessFailedCountAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.IncrementAccessFailedCountAsync(`0,System.Threading.CancellationToken)">
IncrementAccessFailedCountAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Records that a failed access has occurred, incrementing the failed access count.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;int&gt; IncrementAccessFailedCountAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose cancellation count should be incremented.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the incremented failed access count.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_IsInRoleAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.IsInRoleAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_IsInRoleAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.IsInRoleAsync(`0,System.String,System.Threading.CancellationToken)">
IsInRoleAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Returns a flag indicating whether the specified <code class="paramref">user</code> is a member of the given named role.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;bool&gt; IsInRoleAsync(TUser user, string roleName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose role membership should be checked.</p>
</dd>
<dt><code>roleName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The name of the role to be checked.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing a flag indicating whether the specified <code class="paramref">user</code> is
a member of the named role.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_RemoveFromRoleAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.RemoveFromRoleAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_RemoveFromRoleAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.RemoveFromRoleAsync(`0,System.String,System.Threading.CancellationToken)">
RemoveFromRoleAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Remove the specified <code class="paramref">user</code> from the named role.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task RemoveFromRoleAsync(TUser user, string roleName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to remove the named role from.</p>
</dd>
<dt><code>roleName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The name of the role to remove.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_ResetAccessFailedCountAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.ResetAccessFailedCountAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_ResetAccessFailedCountAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.ResetAccessFailedCountAsync(`0,System.Threading.CancellationToken)">
ResetAccessFailedCountAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Resets a user's failed access count.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task ResetAccessFailedCountAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose failed access count should be reset.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<h4 class="section" id="Hi_SqliteUtils_SqliteUserStore_1_ResetAccessFailedCountAsync__0_System_Threading_CancellationToken__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>This is typically called after the account is successfully accessed.</p>
</div>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetEmailAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetEmailAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetEmailAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetEmailAsync(`0,System.String,System.Threading.CancellationToken)">
SetEmailAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the <code class="paramref">email</code> address for a <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetEmailAsync(TUser user, string email, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email should be set.</p>
</dd>
<dt><code>email</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The email to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The task object representing the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetEmailConfirmedAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetEmailConfirmedAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetEmailConfirmedAsync__0_System_Boolean_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetEmailConfirmedAsync(`0,System.Boolean,System.Threading.CancellationToken)">
SetEmailConfirmedAsync(TUser, bool, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the flag indicating whether the specified <code class="paramref">user</code>'s email address has been confirmed or not.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetEmailConfirmedAsync(TUser user, bool confirmed, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email confirmation status should be set.</p>
</dd>
<dt><code>confirmed</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>A flag indicating if the email address has been confirmed, true if the address is confirmed otherwise false.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The task object representing the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetLockoutEnabledAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetLockoutEnabledAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetLockoutEnabledAsync__0_System_Boolean_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetLockoutEnabledAsync(`0,System.Boolean,System.Threading.CancellationToken)">
SetLockoutEnabledAsync(TUser, bool, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Set the flag indicating if the specified <code class="paramref">user</code> can be locked out.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetLockoutEnabledAsync(TUser user, bool enabled, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose ability to be locked out should be set.</p>
</dd>
<dt><code>enabled</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>A flag indicating if lock out can be enabled for the specified <code class="paramref">user</code>.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetLockoutEndDateAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetLockoutEndDateAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetLockoutEndDateAsync__0_System_Nullable_System_DateTimeOffset__System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetLockoutEndDateAsync(`0,System.Nullable{System.DateTimeOffset},System.Threading.CancellationToken)">
SetLockoutEndDateAsync(TUser, DateTimeOffset?, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Locks out a user until the specified end date has passed. Setting a end date in the past immediately unlocks a user.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetLockoutEndDateAsync(TUser user, DateTimeOffset? lockoutEnd, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose lockout date should be set.</p>
</dd>
<dt><code>lockoutEnd</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetimeoffset">DateTimeOffset</a>?</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetimeoffset">DateTimeOffset</a> after which the <code class="paramref">user</code>'s lockout should end.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetNormalizedEmailAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetNormalizedEmailAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetNormalizedEmailAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetNormalizedEmailAsync(`0,System.String,System.Threading.CancellationToken)">
SetNormalizedEmailAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the normalized email for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetNormalizedEmailAsync(TUser user, string normalizedEmail, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose email address to set.</p>
</dd>
<dt><code>normalizedEmail</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The normalized email to set for the specified <code class="paramref">user</code>.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The task object representing the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetNormalizedUserNameAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetNormalizedUserNameAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetNormalizedUserNameAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetNormalizedUserNameAsync(`0,System.String,System.Threading.CancellationToken)">
SetNormalizedUserNameAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the given normalized name for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetNormalizedUserNameAsync(TUser user, string normalizedName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose name should be set.</p>
</dd>
<dt><code>normalizedName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The normalized name to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetPasswordHashAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPasswordHashAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetPasswordHashAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPasswordHashAsync(`0,System.String,System.Threading.CancellationToken)">
SetPasswordHashAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the password hash for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetPasswordHashAsync(TUser user, string passwordHash, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose password hash to set.</p>
</dd>
<dt><code>passwordHash</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The password hash to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetPhoneNumberAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPhoneNumberAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetPhoneNumberAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPhoneNumberAsync(`0,System.String,System.Threading.CancellationToken)">
SetPhoneNumberAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the telephone number for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetPhoneNumberAsync(TUser user, string phoneNumber, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose telephone number should be set.</p>
</dd>
<dt><code>phoneNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The telephone number to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetPhoneNumberConfirmedAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPhoneNumberConfirmedAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetPhoneNumberConfirmedAsync__0_System_Boolean_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetPhoneNumberConfirmedAsync(`0,System.Boolean,System.Threading.CancellationToken)">
SetPhoneNumberConfirmedAsync(TUser, bool, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets a flag indicating if the specified <code class="paramref">user</code>'s phone number has been confirmed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetPhoneNumberConfirmedAsync(TUser user, bool confirmed, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose telephone number confirmation status should be set.</p>
</dd>
<dt><code>confirmed</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>A flag indicating whether the user's telephone number has been confirmed.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetSecurityStampAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetSecurityStampAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetSecurityStampAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetSecurityStampAsync(`0,System.String,System.Threading.CancellationToken)">
SetSecurityStampAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the provided security <code class="paramref">stamp</code> for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetSecurityStampAsync(TUser user, string stamp, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose security stamp should be set.</p>
</dd>
<dt><code>stamp</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The security stamp to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetTwoFactorEnabledAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetTwoFactorEnabledAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetTwoFactorEnabledAsync__0_System_Boolean_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetTwoFactorEnabledAsync(`0,System.Boolean,System.Threading.CancellationToken)">
SetTwoFactorEnabledAsync(TUser, bool, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets a flag indicating whether the specified <code class="paramref">user</code> has two factor authentication enabled or not,
as an asynchronous operation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetTwoFactorEnabledAsync(TUser user, bool enabled, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose two factor authentication enabled status should be set.</p>
</dd>
<dt><code>enabled</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>A flag indicating whether the specified <code class="paramref">user</code> has two factor authentication enabled.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_SetUserNameAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetUserNameAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_SetUserNameAsync__0_System_String_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.SetUserNameAsync(`0,System.String,System.Threading.CancellationToken)">
SetUserNameAsync(TUser, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Sets the given <code class="paramref">userName</code> for the specified <code class="paramref">user</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task SetUserNameAsync(TUser user, string userName, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user whose name should be set.</p>
</dd>
<dt><code>userName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The user name to set.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation.</p>
</dd>
</dl>
<a id="Hi_SqliteUtils_SqliteUserStore_1_UpdateAsync_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.UpdateAsync*"></a>
<h3 id="Hi_SqliteUtils_SqliteUserStore_1_UpdateAsync__0_System_Threading_CancellationToken_" data-uid="Hi.SqliteUtils.SqliteUserStore`1.UpdateAsync(`0,System.Threading.CancellationToken)">
UpdateAsync(TUser, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Updates the specified <code class="paramref">user</code> in the user store.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;IdentityResult&gt; UpdateAsync(TUser user, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>user</code> <span class="xref">TUser</span></dt>
<dd><p>The user to update.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> used to propagate notifications that the operation should be canceled.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a>&gt;</dt>
<dd><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a> that represents the asynchronous operation, containing the <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.identity.identityresult">IdentityResult</a> of the update operation.</p>
</dd>
</dl>
</article>
<div class="contribution d-print-none">
</div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
</div>
</div>
</footer>
</body>
</html>