Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PathMatcher.Match(String, String, Boolean) Method

Determines if a given path matches a NAnt-like pattern.

[Visual Basic]
Public Overloads Shared Sub Match( _
   ByVal pattern As String, _
   ByVal path As String, _
   ByVal ignoreCase As Boolean _
)
[C#]
public static bool Match(
   string pattern,
   string path,
   bool ignoreCase
);

Parameters

pattern
A forward or back-slashed fileset-like pattern.
path
A forward or back-slashed full path.
ignoreCase
should the match consider the case

Return Value

true if the path is matched by the pattern; otherwise false.

See Also

PathMatcher Class | Spring.Util Namespace | PathMatcher.Match Overload List