Share via


Managed IIS::CreateVDir Method

The CreateVDir method creates a virtual directory.

Arguments

The CreateVDir method accepts the following input parameters.

Input Argument Required Description

ConfigPath

No

The IIS path to the parent site.

Path

No

The file path for virtual directory.

VirtualDirName

No

The name or alias for vdir.

DisplayName

No

The display name.

AppCreate

No

A flag to create an application.

AppIsolationLevel

No

The Application Isolation Level property.

AccessRead

No

The Read permissions property.

AccessScript

No

The Script permissions property.

AccessWrite

No

The Write permissions property.

AccessExecute

No

The Execute permissions property.

PreferredDomainController

No

The domain controller to use for this operation.

SendCredentials

No

True/False: embed basic authentication credentials in the MPF request.

ErrorReturn

No

Out parameter containing the error (if any) thrown by MPF during the processing of the request.

The CreateVDir method has the following return values.

Output Argument Description

True

If the method succeeds.

False

If the method fails to create the virtual directory.

Remarks

No remarks.

Sample Code

No sample code.

Applies To

for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Managed IIS::DeleteVDir Method