Edit

Share via


IISVirtualRoot.Create(String, String, String, String) Method

Definition

Creates an Internet Information Services (IIS) virtual root.

This API supports the product infrastructure and is not intended to be used directly from your code.

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)

Parameters

RootWeb
String

A string with the value "IIS://localhost/W3SVC/1/ROOT" representing the root Web server.

inPhysicalDirectory
String

The physical path of the virtual root, which corresponds to PhysicalPath from the CreateVirtualRoot(String, String, String, String, String, String) method.

VirtualDirectory
String

The name of the virtual root, which corresponds to VirtualRoot from CreateVirtualRoot(String, String, String, String, String, String).

Error
String

A string to which an error message can be written.

Implements

Remarks

You do not need to call the Create method from your code. Instead, use the CreateVirtualRoot method.

Applies to