Partilhar via


SPWeb.Features Property

Gets the collection of Features that are currently activated in the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property Features As SPFeatureCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPFeatureCollection

value = instance.Features
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPFeatureCollection Features { get; }

Property Value

Type: Microsoft.SharePoint.SPFeatureCollection
A collection of SPFeature objects that represents the Features currently activated on the website.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace