RazorComponentsEndpointConventionBuilderExtensions.WithBrowserOptions Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Configure un BrowserOptions qui sera émis en tant que commentaire DOM dans le navigateur pour tous les points de terminaison de composant Razor.
public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder WithBrowserOptions(this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder, Action<Microsoft.AspNetCore.Components.BrowserOptions> configureOptions);
static member WithBrowserOptions : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder * Action<Microsoft.AspNetCore.Components.BrowserOptions> -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function WithBrowserOptions (builder As RazorComponentsEndpointConventionBuilder, configureOptions As Action(Of BrowserOptions)) As RazorComponentsEndpointConventionBuilder
Paramètres
- configureOptions
- Action<BrowserOptions>
Action pour configurer le BrowserOptions.
Retours
Le RazorComponentsEndpointConventionBuilder.