IISVirtualRoot.Create(String, String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 Internet Information Services(IIS)虛擬根。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
virtual void Create(System::String ^ RootWeb, System::String ^ inPhysicalDirectory, System::String ^ VirtualDirectory, [Runtime::InteropServices::Out] System::String ^ % Error);
public void Create(string RootWeb, string inPhysicalDirectory, string VirtualDirectory, out string Error);
abstract member Create : string * string * string * string -> unit
override this.Create : string * string * string * string -> unit
Public Sub Create (RootWeb As String, inPhysicalDirectory As String, VirtualDirectory As String, ByRef Error As String)
參數
- RootWeb
- String
一個字串,其值 "IIS://localhost/W3SVC/1/ROOT" 代表根網頁伺服器。
- inPhysicalDirectory
- String
虛擬根的物理路徑,對應 PhysicalPath 於方法 CreateVirtualRoot(String, String, String, String, String, String) 中的 。
- VirtualDirectory
- String
虛根的名稱,對應 VirtualRoot 於來自 CreateVirtualRoot(String, String, String, String, String, String)的。
- Error
- String
一個可以寫入錯誤訊息的字串。
實作
備註
你不需要從程式碼中呼叫這個 Create 方法。 相反地,應該用這個 CreateVirtualRoot 方法。