共用方式為


ServerManager 建構函式

定義

多載

ServerManager()

使用ApplicationHost.config檔案的預設路徑,初始化 類別的新實例 ServerManager

ServerManager(String)
ServerManager(Boolean, String)

ServerManager()

使用ApplicationHost.config檔案的預設路徑,初始化 類別的新實例 ServerManager

public:
 ServerManager();
public ServerManager ();
Public Sub New ()

備註

ApplicationHost.config檔案的預設路徑是系統目錄和inetsrv\config\ApplicationHost.config的組合路徑。您可以呼叫 Win32 GetSystemDirectory 函式 來判斷系統目錄。

適用於

ServerManager(String)

public:
 ServerManager(System::String ^ applicationHostConfigurationPath);
[System.ComponentModel.Browsable(false)]
public ServerManager (string applicationHostConfigurationPath);
new Microsoft.Web.Administration.ServerManager : string -> Microsoft.Web.Administration.ServerManager
Public Sub New (applicationHostConfigurationPath As String)

參數

applicationHostConfigurationPath
String
屬性

適用於

ServerManager(Boolean, String)

public:
 ServerManager(bool readOnly, System::String ^ applicationHostConfigurationPath);
[System.ComponentModel.Browsable(false)]
public ServerManager (bool readOnly, string applicationHostConfigurationPath);
new Microsoft.Web.Administration.ServerManager : bool * string -> Microsoft.Web.Administration.ServerManager
Public Sub New (readOnly As Boolean, applicationHostConfigurationPath As String)

參數

readOnly
Boolean
applicationHostConfigurationPath
String
屬性

適用於