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字串內含的本機路徑功能的檔案系統中。
featid
Type: System.GuidGuid物件,代表此功能的識別碼。
scope
Type: Microsoft.SharePoint.SPFeatureScopeSPFeatureScope值,指出此功能的範圍。
備註
本機路徑是目錄的相對於功能所在的根目錄。
請參閱
參照
Microsoft.SharePoint.Administration namespace
其他資源
SharePoint 功能