Partager via


IUpgradeActionCollection.AddAddContentTypeFieldUpgradeAction Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a new IAddContentTypeFieldUpgradeAction action to the feature upgrade actions collection.

Namespace:  Microsoft.VisualStudio.SharePoint.Features
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Function AddAddContentTypeFieldUpgradeAction As IAddContentTypeFieldUpgradeAction
IAddContentTypeFieldUpgradeAction AddAddContentTypeFieldUpgradeAction()

Return Value

Type: Microsoft.VisualStudio.SharePoint.Features.IAddContentTypeFieldUpgradeAction
The new upgrade action added to the collection.

Remarks

When adding a new field to a content type, you should programmatically add the field to existing content types.

For more information about upgrading features, see Upgrading Features.

.NET Framework Security

See Also

Reference

IUpgradeActionCollection Interface

Microsoft.VisualStudio.SharePoint.Features Namespace