Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ValidateDomainCompatibility method (String, String)

SPSite.ValidateDomainCompatibility method (String, String)

Verifies whether two URLs point to the same site collection, even if the domain portions of the URLs are different.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static bool ValidateDomainCompatibility(
	string site1Url,
	string site2Url
)

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.Boolean
true if the two URLs point to the same site collection; otherwise, false.

The domain portions of the URLs that are passed might be different, for example, because of alternate access mapping.

Show:
© 2015 Microsoft