Bundle.EnumerateFiles Method

Generates an enumeration of VirtualFile objects that represent the contents of the bundle.

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

Syntax

'Declaration
Public Overridable Function EnumerateFiles ( _
    context As BundleContext _
) As IEnumerable(Of BundleFile)
'Usage
Dim instance As Bundle 
Dim context As BundleContext 
Dim returnValue As IEnumerable(Of BundleFile)

returnValue = instance.EnumerateFiles(context)
public virtual IEnumerable<BundleFile> EnumerateFiles(
    BundleContext context
)
public:
virtual IEnumerable<BundleFile^>^ EnumerateFiles(
    BundleContext^ context
)
abstract EnumerateFiles : 
        context:BundleContext -> IEnumerable<BundleFile> 
override EnumerateFiles : 
        context:BundleContext -> IEnumerable<BundleFile> 
public function EnumerateFiles(
    context : BundleContext
) : IEnumerable<BundleFile>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<BundleFile>
An enumeration of VirtualFile objects that represent the contents of the bundle.

Remarks

This will return all of the base method's files, and also add any dynamic files found in the requested directory at the end.

See Also

Reference

Bundle Class

System.Web.Optimization Namespace