Prefixes property
Collapse the table of content
Expand the table of content

SPWebApplication.Prefixes property

Gets the set of paths at which sites may be created.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPPrefixCollection Prefixes { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPPrefixCollection
An SPPrefixCollection object that represents the set of paths at which sites can be created.

Note that it may not always be possible to create sites in all of the SPPrefix objects that are contained in the collection. For example, if there is a site created under an explicit inclusion, a second site cannot be created.

© 2016 Microsoft