Export (0) Print
Expand All

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)

'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)

Parameters

context
Type: System.Web.Optimization.BundleContext
The BundleContext object that contains state for both the framework configuration and the HTTP request.

Return Value

Type: System.Collections.Generic.IEnumerable(Of BundleFile)
An enumeration of VirtualFile objects that represent the contents of the bundle.

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

Show:
© 2014 Microsoft