This topic has not yet been rated - Rate this topic

SPList.Update Method ()

Windows SharePoint Services 3
Updates the database with changes that are made to the list.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public void Update ()

The following code example uses the Update method to modify several properties for a list.

SPWeb oWebsite = SPContext.Current.Web;
SPList oList = oWebsite.Lists["List_Name"];
oList.EnableAttachments = true;
oList.EnableModeration = true;
oList.Hidden = true;
oList.Update();
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ