共用方式為


SPFeatureDefinition.GetFeatureIdAndScope method

會傳回 string,指定其feature.xml檔案的位置為基礎之功能的範圍與識別碼。

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

Syntax

'宣告
Public Shared Sub GetFeatureIdAndScope ( _
    pathFeatureDefinition As String, _
    <OutAttribute> ByRef featid As Guid, _
    <OutAttribute> ByRef scope As SPFeatureScope _
)
'用途
Dim pathFeatureDefinition As String
Dim featid As Guid
Dim scope As SPFeatureScopeSPFeatureDefinition.GetFeatureIdAndScope(pathFeatureDefinition, _
    featid, scope)
public static void GetFeatureIdAndScope(
    string pathFeatureDefinition,
    out Guid featid,
    out SPFeatureScope scope
)

參數

  • pathFeatureDefinition
    Type: System.String

    字串內含的本機路徑功能的檔案系統中。

備註

本機路徑是目錄的相對於功能所在的根目錄。

請參閱

參照

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace

其他資源

SharePoint 功能