Edit

Share via


VirtualDirectory.Files Property

Definition

Gets a list of all files contained in this directory.

public abstract System.Collections.IEnumerable Files { get; }

Property Value

An object implementing the IEnumerable interface containing VirtualFile objects.

Remarks

The Files property contains VirtualFile objects that represent the files contained in this virtual directory. To return the VirtualDirectory objects, use the Directories property. To return both VirtualFile and VirtualDirectory objects, use the Children property.

Notes to Implementers

If your virtual directory structure contains moderate to large numbers of virtual resources, you should take care to minimize the system resources consumed by enumerating the virtual directory.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also