WebAssemblyRazorComponentsBuilderExtensions.AddInteractiveWebAssemblyComponents 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder) |
新增支援互動式 WebAssembly 元件呈現的服務。 |
| AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder, Action<WebAssemblyComponentsOptions>) |
新增支援互動式 WebAssembly 元件呈現的服務。 |
AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder)
新增支援互動式 WebAssembly 元件呈現的服務。
public static Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder AddInteractiveWebAssemblyComponents(this Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder builder);
static member AddInteractiveWebAssemblyComponents : Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder -> Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder
<Extension()>
Public Function AddInteractiveWebAssemblyComponents (builder As IRazorComponentsBuilder) As IRazorComponentsBuilder
參數
傳回
IRazorComponentsBuilder這可以用來進一步自訂配置。
適用於
AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder, Action<WebAssemblyComponentsOptions>)
新增支援互動式 WebAssembly 元件呈現的服務。
public static Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder AddInteractiveWebAssemblyComponents(this Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder builder, Action<Microsoft.AspNetCore.Components.WebAssembly.Server.WebAssemblyComponentsOptions>? configure);
static member AddInteractiveWebAssemblyComponents : Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder * Action<Microsoft.AspNetCore.Components.WebAssembly.Server.WebAssemblyComponentsOptions> -> Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder
<Extension()>
Public Function AddInteractiveWebAssemblyComponents (builder As IRazorComponentsBuilder, configure As Action(Of WebAssemblyComponentsOptions)) As IRazorComponentsBuilder
參數
- configure
- Action<WebAssemblyComponentsOptions>
一個回調來設定 WebAssemblyComponentsOptions。
傳回
IRazorComponentsBuilder這可以用來進一步自訂配置。