Freigeben über


VersionControlPath.Combine Method (String, String)

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 _
) As String
public static string Combine(
    string parent,
    string relative
)
public:
static String^ Combine(
    String^ parent, 
    String^ relative
)
static member Combine : 
        parent:string * 
        relative:string -> string
public static function Combine(
    parent : String, 
    relative : String
) : 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