Verifies whether two URLs point to the same site collection, even if the domain portions of the URLs are different.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function ValidateDomainCompatibility ( _
site1Url As String, _
site2Url As String _
) As Boolean
用法
Dim site1Url As String
Dim site2Url As String
Dim returnValue As Boolean
returnValue = SPSite.ValidateDomainCompatibility(site1Url, _
site2Url)
public static bool ValidateDomainCompatibility(
string site1Url,
string site2Url
)
参数
site1Url
类型:System.StringA string that specifies the absolute URL of the first site collection.
site2Url
类型:System.StringA string that specifies the absolute URL of the second site collection.
返回值
类型: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.