Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns just the file name part 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 ( _
buildPath As String _
) As String
public static string GetItemName(
string buildPath
)
public:
static String^ GetItemName(
String^ buildPath
)
static member GetItemName :
buildPath:string -> string
public static function GetItemName(
buildPath : String
) : String
Parameters
buildPath
Type: System.StringThe 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.