Language

BrowserOptions Class

Definition

Options that flow from the server to the Blazor client in the browser via a DOM comment. Only serializable options are included; callbacks stay with JS initializers.

public sealed class BrowserOptions
type BrowserOptions = class
Public NotInheritable Class BrowserOptions
Inheritance
BrowserOptions

Constructors

Name Description
BrowserOptions()

Properties

Name Description
InteractiveServer

Gets the interactive server (circuit) specific options.

InteractiveWebAssembly

Gets the interactive WebAssembly-specific options.

LogLevel

Gets or sets the log level for the Blazor JS runtime. Applies to all render modes. Maps to WebStartOptions.logLevel.

StaticServer

Gets the static server (SSR) specific options.

Methods

Name Description
GetBrowserOptions(HttpContext)

Gets the BrowserOptions for the current request. If not already set, seeds from endpoint metadata or creates a new instance.

Applies to