RazorComponentsEndpointConventionBuilderExtensions.WithBrowserOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a BrowserOptions that will be emitted as a DOM comment to the browser for all Razor component endpoints.
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
Parameters
- configureOptions
- Action<BrowserOptions>
An action to configure the BrowserOptions.
Returns
The RazorComponentsEndpointConventionBuilder.