共用方式為


SPAlternateUrlCollection.Add method

將指定的 URL 新增至 Web 應用程式的備用要求 Url 的集合。

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

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub Add ( _
    alternateUrl As SPAlternateUrl _
)
'用途
Dim instance As SPAlternateUrlCollection
Dim alternateUrl As SPAlternateUrl

instance.Add(alternateUrl)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void Add(
    SPAlternateUrl alternateUrl
)

參數

Implements

ICollection<T>.Add(T)

請參閱

參照

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace