Share via


PathIntrinsics.Combine(String, String) Method

Definition

Combines two strings with a provider specific path separator.

public:
 System::String ^ Combine(System::String ^ parent, System::String ^ child);
public:
 Platform::String ^ Combine(Platform::String ^ parent, Platform::String ^ child);
std::wstring Combine(std::wstring const & parent, std::wstring const & child);
public string Combine (string parent, string child);
member this.Combine : string * string -> string
Public Function Combine (parent As String, child As String) As String

Parameters

parent
String

The parent path to be joined with the child.

child
String

The child path to be joined with the parent.

Returns

The combined path of the parent and child with the provider specific path separator between them.

Exceptions

If context is null.

If both parent and child is null.

If the providerId does not support this operation.

If the pipeline is being stopped while executing the command.

If the provider threw an exception.

Applies to