Class
BrowserHostOptionsFluent
ConsoleMonster.Headless
The fluent methods of BrowserHostOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- BrowserHostOptionsFluent
Methods
public static BrowserHostOptions Port(BrowserHostOptions browserHostOptions, int value) #Sets BrowserHostOptions.Port: The port on 127.0.0.1 (default 0: the system picks a free one; read it from BrowserHost.Address).
Parameters
- browserHostOptions ConsoleMonster.Headless.BrowserHostOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.BrowserHostOptions { Port = value }; browserHostOptions.Port(value);public static BrowserHostOptions Title(BrowserHostOptions browserHostOptions, string value) #Sets BrowserHostOptions.Title: The page title (default ConsoleMonster).
Parameters
- browserHostOptions ConsoleMonster.Headless.BrowserHostOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.BrowserHostOptions { Title = value }; browserHostOptions.Title(value);