BuildContainerPath.GetItemName Method

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

See Also

Reference

BuildContainerPath Class

Microsoft.TeamFoundation.Build.Common Namespace