Partager via


IgnoreList.ShouldIgnore Method

Determines whether a file should be ignored based on the ignore list.

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

Syntax

'Declaration
Public Function ShouldIgnore ( _
    context As BundleContext, _
    fileName As String _
) As Boolean
'Usage
Dim instance As IgnoreList 
Dim context As BundleContext 
Dim fileName As String 
Dim returnValue As Boolean 

returnValue = instance.ShouldIgnore(context, _
    fileName)
public bool ShouldIgnore(
    BundleContext context,
    string fileName
)
public:
bool ShouldIgnore(
    BundleContext^ context, 
    String^ fileName
)
member ShouldIgnore : 
        context:BundleContext * 
        fileName:string -> bool
public function ShouldIgnore(
    context : BundleContext, 
    fileName : String
) : boolean

Parameters

  • fileName
    Type: System.String
    The name of the file to compare with the ignore list.

Return Value

Type: System.Boolean
true if the filename matches a pattern in the IgnoreList; otherwise, false.

See Also

Reference

IgnoreList Class

System.Web.Optimization Namespace