Partager via


Add Method

The Add method of the SPAlternateUrlCollection class adds the specified URL to the collection of alternate request URLs for the virtual server.

Parameters

alternateUrl   A Microsoft.SharePoint.Administration.SPAlternateUrl object that represents the new request URL to add.

Remarks

For changes to take effect after implementing the Add method, reset Microsoft Internet Information Services by typing iisreset at the command line.

Example

The following code example creates a URL for the Intranet zone and adds it to the collection of alternate request URLs for the zone.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security