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
- item
Type: System.String
Return Value
Type: System.String
.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.