SPFeatureDefinition.RootDirectory property

Gets the full local path to the root folder of the Feature.

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


Public ReadOnly Property RootDirectory As String
Dim instance As SPFeatureDefinition
Dim value As String

value = instance.RootDirectory
public string RootDirectory { get; }

Property value

Type: System.String
A string that contains the path to the root folder, for example, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\contentlightup.


Feature elements reside in the directory in which feature.xml resides or one of its subdirectories.

See also


SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace