共用方式為


SPContext.SiteFeatures Property

Gets the activated site collection features of the Windows SharePoint Services context.

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

Syntax

Public ReadOnly Property SiteFeatures As SPFeatureCollection
    Get

Dim instance As SPContext
Dim value As SPFeatureCollection

value = instance.SiteFeatures
public SPFeatureCollection SiteFeatures { get; }

Property Value

Type: Microsoft.SharePoint.SPFeatureCollection
An SPFeatureCollection object that represents the features.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace