IUpgradeActionCollection.AddAddContentTypeFieldUpgradeAction 方法

将新的 IAddContentTypeFieldUpgradeAction 操作添加到功能升级操作集合。

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

语法

声明
Function AddAddContentTypeFieldUpgradeAction As IAddContentTypeFieldUpgradeAction
IAddContentTypeFieldUpgradeAction AddAddContentTypeFieldUpgradeAction()

返回值

类型:Microsoft.VisualStudio.SharePoint.Features.IAddContentTypeFieldUpgradeAction
添加到集合中的新升级操作。

备注

向内容类型中添加新字段时,您应以编程方式将该字段添加到现有内容类型。

有关升级功能的更多信息,请参见 Upgrading Features(升级功能)。

.NET Framework 安全性

请参见

参考

IUpgradeActionCollection 接口

Microsoft.VisualStudio.SharePoint.Features 命名空间