共用方式為


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

Syntax

'Declaration
Public ReadOnly Property Prefixes As SPPrefixCollection
    Get
'Usage
Dim instance As SPWebApplication
Dim value As SPPrefixCollection

value = instance.Prefixes
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.

Remarks

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.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace