Читати англійською Редагувати

Поділитися через


Manager.AreOnTheSameSite(String, String) Method

Definition

Gets a value that indicates whether the site portion of two URLs have the same canonicalized values.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public static bool AreOnTheSameSite(string pURL1, string pURL2);

Parameters

pURL1
String

The first URL to compare.

pURL2
String

The second URL to compare.

Returns

true if the two URLs are on the same site; otherwise, false.

Applies to

Продукт Версії
.NET Framework 1.1, 2.0, 3.0, 3.5