共用方式為


HostingEnvironment.IsDevelopmentEnvironment 屬性

定義

取得值,指出目前應用程式是否處於開發環境。

public:
 static property bool IsDevelopmentEnvironment { bool get(); };
public static bool IsDevelopmentEnvironment { get; }
static member IsDevelopmentEnvironment : bool
Public Shared ReadOnly Property IsDevelopmentEnvironment As Boolean

屬性值

如果應用程式是在開發環境中,則為 true,否則為false

適用於