SPSite.ValidateDomainCompatibility Method (String, String)
SharePoint 2010
Verifies whether two URLs point to the same site collection, even if the domain portions of the URLs are different.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- site1Url
- Type: System.String
A string that specifies the absolute URL of the first site collection.
- site2Url
- Type: System.String
A string that specifies the absolute URL of the second site collection.
Return Value
Type: System.Booleantrue if the two URLs point to the same site collection; otherwise, false.