Share via


VersionControlPath.MatchFileName Method

Matches just the final component of the specified item to the specified wildcard.

Namespace:  Microsoft.TeamFoundation.VersionControl.Common
Assembly:  Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)

Syntax

'Declaration
Public Shared Function MatchFileName ( _
    item As String, _
    matchPattern As String _
) As Boolean
public static bool MatchFileName(
    string item,
    string matchPattern
)
public:
static bool MatchFileName(
    String^ item, 
    String^ matchPattern
)
static member MatchFileName : 
        item:string * 
        matchPattern:string -> bool
public static function MatchFileName(
    item : String, 
    matchPattern : String
) : boolean

Parameters

Return Value

Type: System.Boolean
True if the wildcard matches.

.NET Framework Security

See Also

Reference

VersionControlPath Class

Microsoft.TeamFoundation.VersionControl.Common Namespace