共用方式為


IHostApplicationBuilder.Environment Property

Definition

Gets the information about the hosting environment an application is running in.

public:
 property Microsoft::Extensions::Hosting::IHostEnvironment ^ Environment { Microsoft::Extensions::Hosting::IHostEnvironment ^ get(); };
public Microsoft.Extensions.Hosting.IHostEnvironment Environment { get; }
member this.Environment : Microsoft.Extensions.Hosting.IHostEnvironment
Public ReadOnly Property Environment As IHostEnvironment

Property Value

Applies to