Partilhar via


HostApplicationBuilderSettings Class

Definition

Settings for constructing an HostApplicationBuilder.

public ref class HostApplicationBuilderSettings sealed
public sealed class HostApplicationBuilderSettings
type HostApplicationBuilderSettings = class
Public NotInheritable Class HostApplicationBuilderSettings
Inheritance
HostApplicationBuilderSettings

Constructors

HostApplicationBuilderSettings()

Initializes an instance of the HostApplicationBuilderSettings class.

Properties

ApplicationName

Gets or sets the application name.

Args

Gets or sets the command-line arguments to add to the Configuration.

Configuration

Gets or sets the initial configuration sources to be added to the Configuration. These sources can influence the Environment through the use of HostDefaults keys. Disposing the built IHost disposes the ConfigurationManager.

ContentRootPath

Gets or sets the content root path.

DisableDefaults

Gets or sets a value that indicates whether the HostApplicationBuilder instance is configured with pre-configured defaults.

EnvironmentName

Gets or sets the environment name.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to