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)
Available in Sandboxed Solutions: No
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