Share via


VersionControlPath.Match Method

Compares 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

  • recursive
    Type: System.Boolean

    Whether or not the match occurs recursively.

Return Value

Type: System.Boolean
true if the item matches, false otherwise.

.NET Framework Security

See Also

Reference

VersionControlPath Class

Microsoft.TeamFoundation.VersionControl.Common Namespace