SPAlternateUrlCollection.Add method

Adds the specified URL to the collection of alternate request URLs for the Web application.

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

Syntax

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

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

Parameters

Implements

ICollection<T>.Add(T)

See also

Reference

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace