Share via


SPPrefix Class

Represents a specified relative URL that is used to determine whether Windows SharePoint Services or Microsoft Internet Information Services (IIS) handles the request.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPrefix

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPPrefix _
    Inherits SPAutoSerializingObject

Dim instance As SPPrefix
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPPrefix : SPAutoSerializingObject

Remarks

When a request to this Web application is received by the Web server, Windows SharePoint Services looks at the URL path of the request to determine whether the request should be handled by Windows SharePoint Services or by IIS. Inclusions specify what URL paths are handled by Windows SharePoint Services.

Use the Prefixes of the SPWebApplication class to return the collection of prefixes for a Web application.

Use an indexer to return a single prefix from the collection. For example, if the collection is assigned to a variable named myPrefixes, use myPrefixes[index] in C#, or myPrefixes(index) in Visual Basic .NET, where index is the index number of the prefix in the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPPrefix Members

Microsoft.SharePoint.Administration Namespace