ISharePointProjectFeatureCollection.Add 方法 (String)

使用指定的功能名称添加新功能。

命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)

语法

声明
Function Add ( _
    featureName As String _
) As ISharePointProjectFeature
ISharePointProjectFeature Add(
    string featureName
)

参数

返回值

类型:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
一个表示功能的对象。

异常

异常 条件
CheckoutException

项目文件无法签出时发生

.NET Framework 安全性

请参见

参考

ISharePointProjectFeatureCollection 接口

Add 重载

Microsoft.VisualStudio.SharePoint 命名空间