Freigeben über


VersionControlPath.GetFileName Method

Returns the last path component from a canonicalized path. For example, passing "$/abc/xyz" would return "xyz". Passing "$/" will return "".

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

Syntax

'Declaration
Public Shared Function GetFileName ( _
    item As String _
) As String
public static string GetFileName(
    string item
)
public:
static String^ GetFileName(
    String^ item
)
static member GetFileName : 
        item:string -> string
public static function GetFileName(
    item : String
) : String

Parameters

Return Value

Type: System.String

.NET Framework Security

See Also

Reference

VersionControlPath Class

Microsoft.TeamFoundation.VersionControl.Common Namespace