SPAlternateUrlCollection Class
Represents a collection of SPAlternateUrl objects.
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPersistedObject
Microsoft.SharePoint.Administration.SPAlternateUrlCollection
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPersistedObject
Microsoft.SharePoint.Administration.SPAlternateUrlCollection
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[GuidAttribute("9920F486-2FF4-4d10-9532-E01979826585")] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public class SPAlternateUrlCollection : SPPersistedObject, ICollection<SPAlternateUrl>, IEnumerable<SPAlternateUrl>, IEnumerable, IBackupRestore
To create an alternate request URL, use the SPAlternateUrl constructor to instantiate a URL object, and the Add method to add the object to the collection of URL objects for the specified zone. A request URL can be specified only once per Windows SharePoint Services farm.
Use an indexer to return a single URL from the collection. For example, assuming the collection is assigned to a variable named myUrls, use myUrls[index] in Microsoft Visual C# or myUrls(index) in Microsoft Visual Basic, where index is either the index number of the item in the collection, or a string containing the incoming URL of the request.
Construct an SPAlternateUrl and Add (not an SPAlternateUrlCollection)
The first line in the Remarks section should read as follows:
To create an alternate request URL, use the SPAlternateUrl constructor to instantiate a URL object, and the Add method to add the object to the collection of URL objects for the specified zone. A request URL can be specified only once per Windows SharePoint Services farm.
MS: This will be corrected in the next update of the SharePoint SDK.
To create an alternate request URL, use the SPAlternateUrl constructor to instantiate a URL object, and the Add method to add the object to the collection of URL objects for the specified zone. A request URL can be specified only once per Windows SharePoint Services farm.
MS: This will be corrected in the next update of the SharePoint SDK.