Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
Web Services
Webs Web Service
Webs Class
Webs Methods
 UpdateColumns Method
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
Webs.UpdateColumns Method (Webs)
Creates, updates, or deletes one or more columns on the specified site.

Web Service: WebsWeb Reference: http://<Site>/_vti_bin/Webs.asmx
Visual Basic (Declaration)
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateColumns", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function UpdateColumns ( _
    newFields As XmlNode, _
    updateFields As XmlNode, _
    deleteFields As XmlNode _
) As XmlNode
Visual Basic (Usage)
Dim instance As Webs
Dim newFields As XmlNode
Dim updateFields As XmlNode
Dim deleteFields As XmlNode
Dim returnValue As XmlNode

returnValue = instance.UpdateColumns(newFields, updateFields, deleteFields)
C#
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateColumns", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode UpdateColumns (
    XmlNode newFields,
    XmlNode updateFields,
    XmlNode deleteFields
)

Parameters

newFields

A string that represents the collection of columns to create on the site.

Format the column collection as a Fields Element (List) element, where each Field Element (List - Definition) child element defines a column to create on the site.

updateFields

A string that represents the collection of columns to update on the site.

Format the column collection as a Fields Element (List) element, where each Field Element (List - Definition) child element defines a column to include on the site.

In each Field Element (List - Definition) child element, include the element attributes for the column properties you want to update.

deleteFields

A string that represents the collection of columns to delete from the site.

Format the column collection as a Fields Element (List) element, where each Field Element (List - Definition) child element defines a column to delete from the site.

In each Field Element (List - Definition) child element, include the ID attributes for the column you want to delete.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
A good post by Karthick demonstrates usage.      bobchauvin   |   Edit   |   Show History
http://blogs.msdn.com/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx?CommentPosted=true#commentmessage
Tags What's this?: columns (x) site (x) v3 (x) wss (x) Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker