Share via


Update Method

The Update method of the SPField class updates the database with changes made to the field.

Example

The following code example updates the display name, default value, and description for the specified field.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security