SPFeatureDefinition.GetFeatureIdAndScope 方法

返回的标识符和功能基于 string 类型的值,它指定的feature.xml文件的位置的范围。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    一个字符串,包含功能的文件系统中的本地路径。

  • featid
    类型:System.Guid

    Guid对象,该对象表示功能的标识符。

备注

本地路径是目录的相对于该功能所驻留的根目录。

另请参阅

引用

SPFeatureDefinition 类

SPFeatureDefinition 成员

Microsoft.SharePoint.Administration 命名空间

其他资源

SharePoint 功能