Share via


VersionControlPath.Combine Method (String, String, PathLength)

Returns a fully qualified and canonicalized path constructed from parent and relative. If relative is already a fully qualified path, just return a canonicalized copy of relative. If relative is not fully qualified, return the path that results from appending relative to parent and canonicalizing the result. It is assumed that parent is already canonicalized.

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

Syntax

'Declaration
Public Shared Function Combine ( _
    parent As String, _
    relative As String, _
    maxPathLength As PathLength _
) As String
public static string Combine(
    string parent,
    string relative,
    PathLength maxPathLength
)
public:
static String^ Combine(
    String^ parent, 
    String^ relative, 
    PathLength maxPathLength
)
static member Combine : 
        parent:string * 
        relative:string * 
        maxPathLength:PathLength -> string
public static function Combine(
    parent : String, 
    relative : String, 
    maxPathLength : PathLength
) : String

Parameters

  • parent
    Type: System.String

    The parent path to append relative to (if relative is not fully qualified).

  • relative
    Type: System.String

    The potentially partial path to qualify relative to parent.

Return Value

Type: System.String
The combined, canonicalized path.

.NET Framework Security

See Also

Reference

VersionControlPath Class

Combine Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace