HttpWorkerRequest.RootWebConfigPath 屬性

定義

取得根 Web.config 檔的完整實體路徑。

public:
 virtual property System::String ^ RootWebConfigPath { System::String ^ get(); };
public virtual string RootWebConfigPath { get; }
member this.RootWebConfigPath : string
Public Overridable ReadOnly Property RootWebConfigPath As String

屬性值

根 Web.config 檔的實體路徑。

備註

如果您要實作自己的主控環境,您可以覆寫此屬性以傳回環境根組態檔的位置。 其中一個範例是 類別, SimpleWorkerRequest 其提供 的 HttpWorkerRequest 簡單實作。 類別 SimpleWorkerRequest.RootWebConfigPathSimpleWorkerRequest 屬性會 RootWebConfigPath 覆寫 類別的 HttpWorkerRequest 屬性。

適用於

另請參閱