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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public ReadOnly Property RootDirectory As String
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As String

value = instance.RootDirectory
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
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]