Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compare an item to see whether it matches a folder and a name that may be a wildcard. If recursive is true then any matching item under the matchFolder will match. Wildcard matching is performed by using the NT file system matching rules.
Namespace: Microsoft.TeamFoundation.VersionControl.Common
Assembly: Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)
Syntax
'Declaration
Public Shared Function Match ( _
item As String, _
matchFolder As String, _
matchPattern As String, _
recursive As Boolean _
) As Boolean
public static bool Match(
string item,
string matchFolder,
string matchPattern,
bool recursive
)
public:
static bool Match(
String^ item,
String^ matchFolder,
String^ matchPattern,
bool recursive
)
static member Match :
item:string *
matchFolder:string *
matchPattern:string *
recursive:bool -> bool
public static function Match(
item : String,
matchFolder : String,
matchPattern : String,
recursive : boolean
) : boolean
Parameters
item
Type: System.StringItem to match.
matchFolder
Type: System.StringFolder to match against.
matchPattern
Type: System.StringWildcard to match against.
recursive
Type: System.BooleanWhether or not the match occurs recursively.
Return Value
Type: System.Boolean
true if the item matches, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.