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.StringThe path that should be determined.
Return Value
Type: System.Int32
An integer representing the depth of the path.
.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.