Partager via


PathUtil.ArePathsEqual(String, String) Method

Definition

Determines if two paths are equal. This method does not treat Path.DirectorySeparatorChar and Path.AltDirectorySeparatorChar as equivalent.

public:
 static bool ArePathsEqual(System::String ^ path1, System::String ^ path2);
public:
 static bool ArePathsEqual(Platform::String ^ path1, Platform::String ^ path2);
 static bool ArePathsEqual(std::wstring const & path1, std::wstring const & path2);
public static bool ArePathsEqual (string path1, string path2);
static member ArePathsEqual : string * string -> bool
Public Function ArePathsEqual (path1 As String, path2 As String) As Boolean

Parameters

path1
String

First path to compare

path2
String

Second path to compare

Returns

True if two paths are equal, false if they are not.

Applies to