Share via


SPSite.QueryFeatures method (Guid)

Gets a collection of the features deployed in this site collection that have a specific definition identifier.

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

Syntax

'Declaration
Public Function QueryFeatures ( _
    featureId As Guid _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPSite
Dim featureId As Guid
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId
)

Parameters

Return value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
An enumerable collection of SPFeature objects.

See also

Reference

SPSite class

SPSite members

QueryFeatures overload

Microsoft.SharePoint namespace