<?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>Life inside MOSS &#187; Object Model</title>
	<atom:link href="http://www.mossgeek.com/category/object-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mossgeek.com</link>
	<description>Share Point Server2007 blog</description>
	<lastBuildDate>Tue, 04 May 2010 17:58:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Accessing Lists through Sharepoint  Object model</title>
		<link>http://www.mossgeek.com/2009/06/accessing-lists-through-sharepoint-object-model/</link>
		<comments>http://www.mossgeek.com/2009/06/accessing-lists-through-sharepoint-object-model/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:39:37 +0000</pubDate>
		<dc:creator>Geek</dc:creator>
				<category><![CDATA[Best practices]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Object Model]]></category>
		<category><![CDATA[Tips n Tricks]]></category>

		<guid isPermaLink="false">http://www.mossgeek.com/?p=101</guid>
		<description><![CDATA[Is accessing the list taking more time&#8230;
Consider the following while accessing the list  through Object model

SPWeb.GetList(string url)
In this case, first it gets the list GUID from the url(database hit), then it loads the Meta data for that specific list.
SPWeb.Lists[“name”]
This method loads the meta-data information of the all lists for the SPWeb object under consideration. and [...]]]></description>
			<content:encoded><![CDATA[<p>Is accessing the list taking more time&#8230;</p>
<p>Consider the following while accessing the list  through Object model</p>
<ol>
<li><strong>SPWeb.GetList(string url)</strong><br />
In this case, first it gets the list GUID from the url(database hit), then it loads the Meta data for that specific list.</li>
<li><strong>SPWeb.Lists[“name”]</strong><br />
This method loads the meta-data information of the all lists for the SPWeb object under consideration. and then it does SPList.Title comparison with metadata of all the lists returned and returns the first matching list from the SPWeb.Lists collection.</li>
</ol>
<p>The first approach provides better performance than the second one.</p>
<p>If we pass GUID of the list  instead of a list name in the second approach it works similar to the first approach (SPWeb.GetList (url)), however passing a List Index would work similar to the second approach.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mossgeek.com/2009/06/accessing-lists-through-sharepoint-object-model/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Understand Sharepoint using Dot Net Reflector</title>
		<link>http://www.mossgeek.com/2009/02/understand-sharepoint-using-dot-net-reflector/</link>
		<comments>http://www.mossgeek.com/2009/02/understand-sharepoint-using-dot-net-reflector/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 20:57:37 +0000</pubDate>
		<dc:creator>Geek</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Moss]]></category>
		<category><![CDATA[Object Model]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.mossgeek.com/?p=44</guid>
		<description><![CDATA[
Using .NET Reflector, you can browse the classes and methods of an assembly, you can examine the Microsoft intermediate language (MSIL) generated by these classes and methods, and you can decompile the classes and methods and see the equivalent in C# or Visual Basic .NET.

Dot Net Reflector Can be used for the following in SharePoint [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">Using .NET Reflector, you can browse the classes and methods of an assembly, you can examine the Microsoft intermediate language (MSIL) generated by these classes and methods, and you can decompile the classes and methods and see the equivalent in C# or Visual Basic .NET.</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span class="MsoHyperlink"><span style="text-decoration: none;"><span style="text-decoration: underline;"></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">Dot Net Reflector Can be used for the following in</span><span style="font-size: small; font-family: Calibri;"> SharePoint Scenario, </span><span style="font-size: small; font-family: Calibri;">:</span></p>
<ul>
<li> <span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">Understand on how SharePoint is doing something, to find what elements can be customized.</span></span></span><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;" lang="EN"><span style="mso-list: Ignore;"></span></span></li>
<li><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;" lang="EN"><span style="mso-list: Ignore;"><span style="font: 7pt &quot;Times New Roman&quot;;"> </span></span></span><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">Understand what members to override in classes you create that inherit from SharePoint classes</span></span></span></li>
<li><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"></span></span><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;" lang="EN"><span style="mso-list: Ignore;"></span></span><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">.NET Reflector is also an excellent way to know the best practices. Because you get to see how the team at Microsoft actually implemented functionalities. And also you have lots of examples at your fingers tips.</span></span></span></li>
</ul>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in;"><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small; font-family: Calibri;"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><strong><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">Example Usage of Dot Net Reflector to Under Stand SharePoint Source Code:</span></span></span></strong></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-weight: bold;" lang="EN"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt &quot;Times New Roman&quot;;"> </span></span></span><span style="mso-ansi-language: EN;" lang="EN"><span style="font-size: small;"><span style="font-family: Calibri;">If you want to know on what is happening on load of OOTB Search Results Page then open<strong> Microsoft.SharePoint.ApplicationPages.dll</strong> and navigate to SearchResultsPage class and click on OnLoad method. </span></span></span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;">
<p><span style="mso-ansi-language: EN;" lang="EN"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><strong><span style="mso-ansi-language: EN;" lang="EN">SharePoint DLLS:</span></strong></p>
<ul>
<li><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;" lang="EN"><span style="mso-list: Ignore;"></span></span><span style="mso-ansi-language: EN;" lang="EN">You can find all the SharePoint dlls under  <a href="file:///C:/Program%20Files/Common%20Files/Microsoft%20Shared/web%20server%20extensions/12/ISAPI">C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI</a></span></li>
</ul>
<ul>
<li><span style="font-family: Symbol; mso-ansi-language: EN; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;" lang="EN"><span style="mso-list: Ignore;"></span></span><span style="mso-ansi-language: EN;" lang="EN">Some SharePoint assemblies(Microsoft.SharePoint.ApplicationPages.dll)  are stored in the <strong>_app_bin</strong> directory of the web application instead of the ISAPI directory in the 12-hive.</span></li>
</ul>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="mso-ansi-language: EN;" lang="EN"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><strong><span style="mso-ansi-language: EN;" lang="EN">Obfuscation:</span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="mso-ansi-language: EN;" lang="EN">Sometimes, not too often, when Reflector is disassembling source code for you, it will show &#8220;This item is obfuscated and can not be translated&#8221; instead of code. This is done for some of the more &#8220;sensitive&#8221; areas of the code</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><strong>Downloads:</strong></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">.Net Reflector:<strong> </strong><span style="text-decoration: underline;"><a href="http://www.red-gate.com/products/reflector/">http://www.red-gate.com/products/reflector/</a></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">Add-ins:<strong> <span style="text-decoration: underline;"> </span></strong><a href="http://www.codeplex.com/reflectoraddins">http://www.codeplex.com/reflectoraddins</a></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><strong>Note:</strong><span style="mso-ansi-language: EN;" lang="EN"> Review the end user license agreement (EULA) for the relevant Microsoft products before using this tool.</span><strong></strong></p>
<p><span style="mso-ansi-language: EN;" lang="EN"></span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-size: small;"><span style="font-family: Calibri;"><strong></strong></span></span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-size: small;"><br />
</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;">
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-list: l0 level1 lfo2;">
]]></content:encoded>
			<wfw:commentRss>http://www.mossgeek.com/2009/02/understand-sharepoint-using-dot-net-reflector/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sharepoint Object Model Best Practices</title>
		<link>http://www.mossgeek.com/2008/07/sharepoint-object-model-best-practices/</link>
		<comments>http://www.mossgeek.com/2008/07/sharepoint-object-model-best-practices/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 18:46:01 +0000</pubDate>
		<dc:creator>Geek</dc:creator>
				<category><![CDATA[Object Model]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Best practices]]></category>

		<guid isPermaLink="false">http://www.mossgeek.com/?p=14</guid>
		<description><![CDATA[Follow the below best practices while doing custom coding using sharepoint object model. I found these articles very useful.
1) Best Practices: Common Coding Issues When Using the SharePoint Object Model
http://msdn.microsoft.com/en-us/library/bb687949.aspx
2) Best Practices: Using Disposable Windows SharePoint Services Objects
http://msdn2.microsoft.com/en-us/library/ms473633.aspx
]]></description>
			<content:encoded><![CDATA[<p>Follow the below best practices while doing custom coding using sharepoint object model. I found these articles very useful.</p>
<p>1) Best Practices: Common Coding Issues When Using the SharePoint Object Model<br />
<a title="Common Coding Issues When Using the SharePoint Object Model" href="http://msdn.microsoft.com/en-us/library/bb687949.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb687949.aspx</a></p>
<p>2) Best Practices: Using Disposable Windows SharePoint Services Objects<br />
<a title="http://msdn2.microsoft.com/en-us/library/ms473633.aspx" href="http://msdn2.microsoft.com/en-us/library/ms473633.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/ms473633.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mossgeek.com/2008/07/sharepoint-object-model-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
