Compartilhar via


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

Implements

ICollection<T>.Add(T)

See Also

Reference

SPAlternateUrlCollection Class

SPAlternateUrlCollection Members

Microsoft.SharePoint.Administration Namespace