SPFeatureDefinition.RootDirectory property
取得此功能的根資料夾的完整本機路徑。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property RootDirectory As String
Get
'用途
Dim instance As SPFeatureDefinition
Dim value As String
value = instance.RootDirectory
public string RootDirectory { get; }
Property value
Type: System.String
字串,其中含有根資料夾路徑,例如C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\contentlightup.
備註
功能元素位於哪個feature.xml所在或其子目錄中的目錄。
請參閱
參照
Microsoft.SharePoint.Administration namespace
[M:Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath(System.String]