Partager via


PathWrapper.Combine Method

Definition

Overloads

Combine(String, String)

Combine 2 path strings. Needed to handle XI path as well.

Combine(String, String, PathType)

Combine 2 path strings. Needed to handle XI path as well.

Combine(String, String)

Combine 2 path strings. Needed to handle XI path as well.

public static string Combine (string path1, string path2);
static member Combine : string * string -> string
Public Shared Function Combine (path1 As String, path2 As String) As String

Parameters

path1
String

First string.

path2
String

Second string

Returns

combined path string

Applies to

Combine(String, String, PathType)

Combine 2 path strings. Needed to handle XI path as well.

public static string Combine (string path1, string path2, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member Combine : string * string * Microsoft.SqlServer.Management.Smo.PathType -> string
Public Shared Function Combine (path1 As String, path2 As String, pathType As PathType) As String

Parameters

path1
String

First string.

path2
String

Second string

pathType
PathType

type of path. If Unspecified, the function will use Linux if s1 starts with /, Windows otherwise

Returns

combined path string

Applies to