<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OfficeDeveloper.NET&#187; a-list-doesn</title>
	<atom:link href="http://officedeveloper.net/tag/a-list-doesn/feed/" rel="self" type="application/rss+xml" />
	<link>http://officedeveloper.net</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 20:08:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Extending SharePoint: Checking if a List exists</title>
		<link>http://officedeveloper.net/2009/07/06/extending-sharepoint-checking-if-a-list-exists/</link>
		<comments>http://officedeveloper.net/2009/07/06/extending-sharepoint-checking-if-a-list-exists/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:41:00 +0000</pubDate>
		<dc:creator>Staff</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[a-list-doesn]]></category>
		<category><![CDATA[a-method-with]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[signature]]></category>

		<guid isPermaLink="false">http://officedeveloper.net/extending-sharepoint-checking-if-a-list-exists/</guid>
		<description><![CDATA[ A common problem when working with the SharePoint Object Model is getting a handle to a list. Very often we find ourselves writing this: 1: try 2: { 3: using (var web = site.OpenWeb()) 4: { 5: if (web != null ) 6: { 7: try 8: { 9: var list = web.Lists[ListTitle]; 10: } 11: catch (ArgumentException) 12: { 13: web.Lists.Add(ListTitle, ListDescription, SPListTemplateType.GenericList); 14: } 15: } 16: else 17: { 18: Console.WriteLine( "Unable to open web site." ); 19: } 20: } 21: } 22: catch (Exception ex) 23: { 24: Console.WriteLine(ex.Message); 25: } This adds a list if it doesn&#39;t exist on the site]]></description>
			<content:encoded><![CDATA[<p> A common problem when working with the SharePoint Object Model is getting a handle to a list. Very often we find ourselves writing this: 1: try 2: { 3: using (var web = site.OpenWeb()) 4: { 5: if (web != null ) 6: { 7: try 8: { 9: var list = web.Lists[ListTitle]; 10: } 11: catch (ArgumentException) 12: { 13: web.Lists.Add(ListTitle, ListDescription, SPListTemplateType.GenericList); 14: } 15: } 16: else 17: { 18: Console.WriteLine( &#8220;Unable to open web site.&#8221; ); 19: } 20: } 21: } 22: catch (Exception ex) 23: { 24: Console.WriteLine(ex.Message); 25: } This adds a list if it doesn&#39;t exist on the site</p>
<p>Go here to read the rest: <br />
<a target="_blank" href="http://feedproxy.google.com/~r/bsimser/~3/rgZdcerIWP4/extending-sharepoint-checking-if-a-list-exists.aspx" title="Extending SharePoint: Checking if a List exists">Extending SharePoint: Checking if a List exists</a></p>
]]></content:encoded>
			<wfw:commentRss>http://officedeveloper.net/2009/07/06/extending-sharepoint-checking-if-a-list-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

