VirtualDirectory Constructor (String)


Initializes a new instance of the VirtualDirectory class.

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

new : 
        virtualPath:string -> VirtualDirectory


Type: System.String

The virtual path to the resource represented by this instance.

The following code example is an implementation of the VirtualDirectory constructor that retrieves virtual file information from a DataSet object provided by a custom VirtualPathProvider object. It includes the GetData method used to populate the VirtualDirectory instance. For the full code required to run the example, see the Example section of the VirtualDirectory class overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top