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
alternateUrl
Type: Microsoft.SharePoint.Administration.SPAlternateUrlAn SPAlternateUrl object that represents the new request URL to add.
Implements
See also
Reference
SPAlternateUrlCollection class