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.StringThe parent path to append relative to (if relative is not fully qualified).
relative
Type: System.StringThe potentially partial path to qualify relative to parent.
- maxPathLength
Type: Microsoft.TeamFoundation.VersionControl.Common.PathLength
Return Value
Type: System.String
The combined, canonicalized 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.