Sdílet prostřednictvím


IUpgradeActionCollection.AddAddContentTypeFieldUpgradeAction Method

Definition

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

public:
 Microsoft::VisualStudio::SharePoint::Features::IAddContentTypeFieldUpgradeAction ^ AddAddContentTypeFieldUpgradeAction();
public Microsoft.VisualStudio.SharePoint.Features.IAddContentTypeFieldUpgradeAction AddAddContentTypeFieldUpgradeAction ();
abstract member AddAddContentTypeFieldUpgradeAction : unit -> Microsoft.VisualStudio.SharePoint.Features.IAddContentTypeFieldUpgradeAction
Public Function AddAddContentTypeFieldUpgradeAction () As IAddContentTypeFieldUpgradeAction

Returns

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.

Applies to