Delen via


BuildContainerPath Class

Provides utility methods for build container paths.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Build.Common.BuildContainerPath

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

Syntax

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

The BuildContainerPath type exposes the following members.

Properties

  Name Description
Public propertyStatic member RootFolder Gets the root folder

Top

Methods

  Name Description
Public methodStatic member AreEqual
Public methodStatic member Combine Combines path segments into one canonicalized path.
Public methodStatic member GetContainerId Finds the containerId from a build container path.
Public methodStatic member GetContainerIdAndPath Splits a path into its two major components of container id and item path.
Public methodStatic member GetFolderName Takes a build container path as either #/id/aaa/bbb or the http address and strips off the last part of the path. If there is not a '/' in the path the original path is returned.
Public methodStatic member GetFullPath Canonicalize a server drop path. This will ensure that, if used, wild cards are not used and that separators are consistent.
Public methodStatic member GetItemName Returns just the file name portion of a path. If the path contains only a team project then the file name will be empty.
Public methodStatic member IsHttpUrl Takes a logLocation stored in an Intermediate build information node and returns whether the path starts with "http".
Public methodStatic member IsServerPath
Public methodStatic member IsSubItem
Public methodStatic member IsValidPath Validates a server drop path and canonicalizes it if it is valid. The output value error is set when the path is not valid.
Public methodStatic member MakeRelative Checks to see if fullPath starts with the parentPath. If so,the parent path is removed from fullPath and the remaining part of fullPath is returned.

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