Compartir a través de


HostingEnvironment Class

Definition

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public ref class HostingEnvironment : Microsoft::Extensions::Hosting::IHostEnvironment, Microsoft::Extensions::Hosting::IHostingEnvironment
public class HostingEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment, Microsoft.Extensions.Hosting.IHostingEnvironment
type HostingEnvironment = class
    interface IHostingEnvironment
    interface IHostEnvironment
Public Class HostingEnvironment
Implements IHostEnvironment, IHostingEnvironment
Inheritance
HostingEnvironment
Implements

Constructors

HostingEnvironment()

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Properties

ApplicationName

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ContentRootFileProvider

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ContentRootPath

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

EnvironmentName

This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

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)

Extension Methods

IsDevelopment(IHostEnvironment)

Checks if the current host environment name is Development.

IsEnvironment(IHostEnvironment, String)

Compares the current host environment name against the specified value.

IsProduction(IHostEnvironment)

Checks if the current host environment name is Production.

IsStaging(IHostEnvironment)

Checks if the current host environment name is Staging.

IsDevelopment(IHostingEnvironment)

Checks if the current hosting environment name is Development.

IsEnvironment(IHostingEnvironment, String)

Compares the current hosting environment name against the specified value.

IsProduction(IHostingEnvironment)

Checks if the current hosting environment name is Production.

IsStaging(IHostingEnvironment)

Checks if the current hosting environment name is Staging.

Applies to