Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

SharePoint enums and Webservices 
Thursday, September 18, 2008, 13:49 - SharePoint
Posted by Administrator
When you get an xml result from the SharePoint webservices, these results are Strings, but in the SharePoint dll these results are availbale in an enum.

private SPFieldType GetFielType(XElement xElement) {
return (SPFieldType)Enum.Parse(typeof(SPFieldType), GetAttribute(xElement, AttributesWeb.Type));
}


I created some wrapper classes that makes coding easier against SharePoint Webservices, in time I will publish more of these:

these can be found here
add comment ( 1 view )   |  permalink   |  related link   |   ( 3 / 536 )

<<First <Back | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Next> Last>>