RemoteAuthenticatorView 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。
public ref class RemoteAuthenticatorView : Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticatorViewCore<Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationState ^>
public class RemoteAuthenticatorView : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticatorViewCore<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState>
type RemoteAuthenticatorView = class
inherit RemoteAuthenticatorViewCore<RemoteAuthenticationState>
Public Class RemoteAuthenticatorView
Inherits RemoteAuthenticatorViewCore(Of RemoteAuthenticationState)
- 继承
构造函数
RemoteAuthenticatorView() |
初始化 RemoteAuthenticatorView 的新实例。 |
属性
方法
BuildRenderTree(RenderTreeBuilder) |
将组件呈现给提供的 RenderTreeBuilder。 (继承自 RemoteAuthenticatorViewCore<TAuthenticationState>) |
DispatchExceptionAsync(Exception) |
将提供的 如果异常发生在组件生命周期方法之外,但你希望将其视为组件生命周期方法中的异常,则这非常有用。 (继承自 ComponentBase) |
InvokeAsync(Action) |
在关联的呈现器同步上下文中执行提供的工作项。 (继承自 ComponentBase) |
InvokeAsync(Func<Task>) |
在关联的呈现器同步上下文中执行提供的工作项。 (继承自 ComponentBase) |
OnAfterRender(Boolean) |
每次组件以交互方式呈现且 UI 完成更新 ((例如,在将元素添加到浏览器 DOM) 之后)之后调用的方法。 将在运行此字段时填充任何 ElementReference 字段。 在预呈现或服务器端呈现期间不会调用此方法,因为这些进程未附加到任何实时浏览器 DOM,并且已在更新 DOM 之前完成。 (继承自 ComponentBase) |
OnAfterRenderAsync(Boolean) |
每次以交互方式呈现组件且 UI 完成更新 ((例如,在将元素添加到浏览器 DOM) 之后)之后调用的方法。 将在运行此字段时填充任何 ElementReference 字段。 在预呈现或服务器端呈现期间不会调用此方法,因为这些进程未附加到任何实时浏览器 DOM,并且已在更新 DOM 之前完成。 请注意,组件不会在完成任何返回 Task的 后自动重新呈现,因为这将导致无限呈现循环。 (继承自 ComponentBase) |
OnInitialized() |
从呈现树中的父组件接收了其初始参数后,在组件准备好启动时调用的方法。 (继承自 ComponentBase) |
OnInitializedAsync() |
从呈现树中的父组件接收了其初始参数后,在组件准备好启动时调用的方法。 如果要执行异步操作并希望组件在完成该操作时刷新,请重写此方法。 (继承自 ComponentBase) |
OnParametersSet() |
当组件从呈现树中的父级接收参数并将传入值分配给属性时调用的方法。 (继承自 ComponentBase) |
OnParametersSetAsync() |
当组件从呈现树中的父级接收参数并将传入值分配给属性时调用的方法。 (继承自 RemoteAuthenticatorViewCore<TAuthenticationState>) |
SetParametersAsync(ParameterView) |
设置组件父级在呈现树中提供的参数。 (继承自 ComponentBase) |
ShouldRender() |
返回一个标志,指示组件是否应呈现。 (继承自 ComponentBase) |
StateHasChanged() |
通知组件其状态已更改。 如果适用,这将导致重新呈现组件。 (继承自 ComponentBase) |
显式接口实现
IComponent.Attach(RenderHandle) |
一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。 (继承自 ComponentBase) |
IHandleAfterRender.OnAfterRenderAsync() |
一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。 (继承自 ComponentBase) |
IHandleEvent.HandleEventAsync(EventCallbackWorkItem, Object) |
一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。 (继承自 ComponentBase) |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈