Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPList Class
SPList Methods
Update Method
 Update Method ()

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPList.Update Method () (Microsoft.SharePoint)
Updates the database with changes that are made to the list.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Sub Update
Visual Basic (Usage)
Dim instance As SPList

instance.Update
C#
public void Update ()

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

Visual Basic
Dim webSite As SPWeb = SPContext.Current.Web
Try
    Dim list As SPList = webSite.Lists("List_Name")
    list.EnableAttachments = True
    list.EnableModeration = True
    list.Hidden = True

    list.Update()
Finally
    webSite.Dispose()
End Try
C#
SPWeb oWebsite = SPContext.Current.Web;
SPList oList = oWebsite.Lists["List_Name"];
oList.EnableAttachments = true;
oList.EnableModeration = true;
oList.Hidden = true;
oList.Update();
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker