Returns just the file name portion of a path. If the path contains only a team project then the file name will be empty.
Namespace:  Microsoft.TeamFoundation.Build.Common
Assembly:  Microsoft.TeamFoundation.Build.Common (in Microsoft.TeamFoundation.Build.Common.dll)
Syntax
'Declaration
Public Shared Function GetItemName ( _
    path As String _
) As String
public static string GetItemName(
    string path
)
public:
static String^ GetItemName(
    String^ path
)
static member GetItemName : 
        path:string -> string
public static function GetItemName(
    path : String
) : String
Parameters
- path 
 Type: System.String- The path from which to retrieve the item name 
Return Value
Type: System.String
A string representing the leaf name of the path (same as GetFileName)
.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.