Application.VirtualDirectories Property

 

Gets the collection of virtual directories for the application.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public VirtualDirectoryCollection VirtualDirectories { get; }

Property Value

Type: Microsoft.Web.Administration.VirtualDirectoryCollection

A VirtualDirectoryCollection object that contains the virtual directories configured for the application.

Each Application created has an implicit root virtual directory. Therefore, the VirtualDirectories property gets a collection that contains at least one object.

The following example lists the Application objects found under the default Web site and then lists each VirtualDirectory object found in the VirtualDirectories property of each Application object.

The following example creates an application under the default Web site and then creates a virtual directory for the application.

Return to top
Show: