SPSite.SetUrl 方法
Set secondary URL and zone for the site collection. If the URL exist for the site collection, then we only update the zone for the existing URL. If the URL does not exist, we will add the URL and the zone for the site collection.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub SetUrl ( _
uri As Uri, _
zone As SPUrlZone _
)
用法
Dim instance As SPSite
Dim uri As Uri
Dim zone As SPUrlZone
instance.SetUrl(uri, zone)
public void SetUrl(
Uri uri,
SPUrlZone zone
)
参数
uri
类型:System.UriThe URL to set for the site collection.
zone
类型:Microsoft.SharePoint.Administration.SPUrlZoneThe zone for the URL to set