Delen via


BuildPath.GetItemDepth Method

Given a fully qualified path this method will determine the depth level relative to the root folder and return an integer signifying the computed depth. The path should be canonicalized before it is passed in.

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

Syntax

'Declaration
Public Shared Function GetItemDepth ( _
    buildPath As String _
) As Integer
public static int GetItemDepth(
    string buildPath
)
public:
static int GetItemDepth(
    String^ buildPath
)
static member GetItemDepth : 
        buildPath:string -> int
public static function GetItemDepth(
    buildPath : String
) : int

Parameters

  • buildPath
    Type: System.String

    The path that should be determined.

Return Value

Type: System.Int32
An integer representing the depth of the path.

.NET Framework Security

See Also

Reference

BuildPath Class

Microsoft.TeamFoundation.Build.Common Namespace