System::IO::Path::Combine method

Path::Combine(const ArrayPtr<String>&) method

Combines the specified path segments into a single path inserting directory separator characters between the segments if necessary.

static String System::IO::Path::Combine(const ArrayPtr<String> &paths)
ParameterTypeDescription
pathsconst ArrayPtr<String>&An array containing path segments to combine

ReturnValue

The combined path

See Also

Path::Combine(const String&, const String&) method

Combines two specified path segments into a single path inserting directory separator character between the segments if necessary.

static String System::IO::Path::Combine(const String &path1, const String &path2)
ParameterTypeDescription
path1const String&The first path segment
path2const String&The second path segment

ReturnValue

The combined path

See Also

Path::Combine(const String&, const String&, const String&) method

Combines three specified path segments into a single path inserting directory separator characters between the segments if necessary.

static String System::IO::Path::Combine(const String &path1, const String &path2, const String &path3)
ParameterTypeDescription
path1const String&The first path segment
path2const String&The second path segment
path3const String&The third path segment

ReturnValue

The combined path

See Also

Path::Combine(const String&, const String&, const String&, const String&) method

Combines four specified path segments into a single path inserting directory separator characters between the segments if necessary.

static String System::IO::Path::Combine(const String &path1, const String &path2, const String &path3, const String &path4)
ParameterTypeDescription
path1const String&The first path segment
path2const String&The second path segment
path3const String&The third path segment
path4const String&The fourth path segment

ReturnValue

The combined path

See Also