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)

Syntax

'Declaration
Public ReadOnly Property RootDirectory As String
    Get
'Usage
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.

Remarks

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

See also

Reference

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace

[M:Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath(System.String]