Home

This document is a cache from http://www.spidertg.com/cmsv5/images/stories/eBook_Libarary/Developer/Putting%20SharePoint%20to%20Work%20for%20You.pdf


Putting Share Point toWorkfor You

Document source : www.spidertg.com


// clean up
xmlDocBatch.RemoveAll();
}
return elementResults;
}
/// <summary>
/// Retrieves the value of a list item, but simply returns an
/// empty string if it didn't exist.
/// </summary>
/// <param name="nodeRow">A list item.</param>
/// <param name="strAttributeName">The field to retrieve from the list
item.</param>
/// <returns>The value of the list item.</returns>
public static string GetListItemValue(XmlNode nodeRow, string strAttributeName) {
XmlAttribute attr = nodeRow.Attributes[strAttributeName];
if (attr == null)
return "";
else
return attr.Value;
}
/// <summary>
/// Creates a new custom SharePoint list. This method will not work if any
field
/// contains a self-referential relationship.
/// </summary>
/// <param name="listService">The lists web service proxy.</param>
/// <param name="strListName">The name of the new list.</param>
/// <param name="strDescription">A description of the new list.</param>
/// <param name="strFieldsInnerXml">
/// The list of fields in the new list. For example:
/// "<Method ID='1' AddToView=''>" +
/// "<Field Type='Lookup' List='[GUID of a foreign list]'
/// DisplayName='Field1' Required='TRUE' /></Method>" +
/// "<Method ID='2' AddToView=''><Field Type='Number'
/// DisplayName='Field2' Required='FALSE' /></Method>"
/// </param>
/// <param name="properties">Properties list</param>
/// <param name="templateID">
/// The Id of the template to use for the list. 100 = Custom List;
/// 101 = Document Library.</param>
/// <param name="strNewGuid">The GUID of the new list.</param>
/// <param name="nodeUpdateResult">The results of the update statement.</param>
/// <seealso href="http://msdn2.microsoft.com/en-us/library/ms437580.aspx">
/// Field Element</seealso>
public static void CreateList(
Lists listService,
string strListName,
34
Putting SharePoint to Work for You, an Internet.com Developer eBook. Copyright 2008, Jupitermedia Corp.
Putting SharePoint to Work for You
[
]







Summary :

/// Retrieves the value of a list item, but simply returns an /// empty string if it didn't exist. + /// "<Field Type='Lookup' List='[GUID of a foreign list]' /// DisplayName='Field1' Required='TRUE' /></Method>" + /// "<Method ID='2' AddToView=''><Field Type='Number' /// DisplayName='Field2' Required='FALSE' /></Method>"


Tags : new,ltsummarygt,listltparamgt,string,field,sharepoint,work,return,alue,quotltmethod,static,custom,putting





Terms    |    Link pdf-search-files.com    |    Site Map
   |    Content Removal Notice   
   |    Contact   

All books are the property of their respective owners.
Please respect the publisher and the author for their creations if their books copyrighted