Combine Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Combines two strings into a path.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

static member Combine : 
        path1:string * 
        path2:string -> string 

Parameters

path1
Type: System..::..String
The first path to combine.
path2
Type: System..::..String
The second path to combine.

Return Value

Type: System..::..String
The combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If path2 contains an absolute path, this method returns path2.

Show: