Jagamisviis:


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

The application name.

Args

The command line arguments to add to the Configuration.

Configuration

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

The content root path.

DisableDefaults

If false, configures the HostApplicationBuilder instance with pre-configured defaults. This has a similar effect to calling ConfigureDefaults(IHostBuilder, String[]).

EnvironmentName

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