SPFeatureDefinitionCollection.ScanForFeatures method
Scans for new Features in the file system, and if new Features are present, adds them to the Feature definition collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ScanForFeatures ( _
solutionId As Guid, _
ScanOnly As Boolean, _
force As Boolean _
) As ArrayList
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim solutionId As Guid
Dim ScanOnly As Boolean
Dim force As Boolean
Dim returnValue As ArrayList
returnValue = instance.ScanForFeatures(solutionId, _
ScanOnly, force)
public ArrayList ScanForFeatures(
Guid solutionId,
bool ScanOnly,
bool force
)
Parameters
solutionId
Type: System.GuidSystem.Guid that identifies the solution.
ScanOnly
Type: System.Booleantrue to scan only for new Feature definitions but not add them to the collection; otherwise, false.
force
Type: System.Booleantrue to specify that reinstallation of the Feature definition be forced; otherwise, false.
Return value
Type: System.Collections.ArrayList
See also
Reference
SPFeatureDefinitionCollection class