Bundle.IncludeDirectory Method (String, String, Boolean)
Includes all files in a directory that match a search pattern.
Namespace: System.Web.Optimization
Assembly: System.Web.Optimization (in System.Web.Optimization.dll)
Syntax
'Declaration
Public Overridable Function IncludeDirectory ( _
directoryVirtualPath As String, _
searchPattern As String, _
searchSubdirectories As Boolean _
) As Bundle
'Usage
Dim instance As Bundle
Dim directoryVirtualPath As String
Dim searchPattern As String
Dim searchSubdirectories As Boolean
Dim returnValue As Bundle
returnValue = instance.IncludeDirectory(directoryVirtualPath, _
searchPattern, searchSubdirectories)
public virtual Bundle IncludeDirectory(
string directoryVirtualPath,
string searchPattern,
bool searchSubdirectories
)
public:
virtual Bundle^ IncludeDirectory(
String^ directoryVirtualPath,
String^ searchPattern,
bool searchSubdirectories
)
abstract IncludeDirectory :
directoryVirtualPath:string *
searchPattern:string *
searchSubdirectories:bool -> Bundle
override IncludeDirectory :
directoryVirtualPath:string *
searchPattern:string *
searchSubdirectories:bool -> Bundle
public function IncludeDirectory(
directoryVirtualPath : String,
searchPattern : String,
searchSubdirectories : boolean
) : Bundle
Parameters
- directoryVirtualPath
Type: System.String
The virtual path to the directory from which to search for files.
- searchPattern
Type: System.String
The search pattern to use in selecting files to add to the bundle.
- searchSubdirectories
Type: System.Boolean
Specifies whether to recursively search subdirectories of directoryVirtualPath.
Return Value
Type: System.Web.Optimization.Bundle
The Bundle object itself for use in subsequent method chaining.