Combine(String,String) Method
Combines two paths into one.
'Declaration
Public Overloads Function Combine( _
ByVal As System.String, _
ByVal As System.String _
) As System.String
'Usage
Dim instance As NPath
Dim path1 As System.String
Dim path2 As System.String
Dim value As System.String
value = instance.Combine(path1, path2)
public System.string Combine(
System.string ,
System.string
)
Parameters
- path1
- path2
Return Value
The combined path. If one of the specified paths is a null or empty string, this method returns the other path. If contains an absolute path, this method returns .
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)