次の方法で共有


SPWebApplication.QueryFeatures method (Guid)

Retrieves all features in the current Web application that are scoped to Site or Web and have the specified feature identifier.

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

Syntax

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

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

Parameters

  • featureId
    Type: System.Guid

    Identifier of the features to be retrieved.

Return value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
Returns an SPFeatureQueryResultCollection object that represents all features of a given scope and identifier.

See also

Reference

SPWebApplication class

SPWebApplication members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace