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
item
Type: System.StringFully qualified path to match.
matchPattern
Type: System.StringWildcard to match to.
Return Value
Type: System.Boolean
True if the wildcard matches.
.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.