Bagikan melalui


BuildPath Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Build.Common.BuildPath

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

Syntax

'Declaration
Public NotInheritable Class BuildPath
public static class BuildPath
public ref class BuildPath abstract sealed
[<AbstractClass>]
[<Sealed>]
type BuildPath =  class end
public final class BuildPath

The BuildPath type exposes the following members.

Properties

  Name Description
Public propertyStatic member RootFolder Gets the root folder.

Top

Methods

  Name Description
Public methodStatic member Combine Combines two path segments into one canonicalized path.
Public methodStatic member GetFullPath Canonicalize a query path. This will make sure that, if it is used, the recursion operator is the next-to-last element of a path and that wildcard characters are not used except for the last element of the path.
Public methodStatic member GetItemDepth 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.
Public methodStatic member GetItemName Returns just the file name part of a path. If the path contains only a team project, then the file name will be empty.
Public methodStatic member GetTeamProject Returns the team project part of the build path. This method assumes that the path has been canonicalized already.
Public methodStatic member IsRecursive Signifies whether the query path contains the full recursion operator. This method assumes that the input path has been canonicalized.
Public methodStatic member IsValidPath Validates a build item path and canonicalizes it if it is valid. The output value error is set when the path is not valid.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Build.Common Namespace