Professional Documents
Culture Documents
70-573 Study Guide
70-573 Study Guide
Manage SPSite and SPWeb programmatically by using Visual Studio 2010 This objective may include but is not limited to: creating sub webs, referencing SPFiles, manipulating property bag, when to call Update, referencing SPContext, SPSite, SPWeb, SPSite.OpenWeb, SPWeb.Webs, feature activiation and deactivation This objective does not include: trivial cases such as setting title and other loose properties of the objects
Implement a dialog by using the Dialog Framework This objective may include but is not limited to: Create dialogs from JavaScript or from server side, display dialogs
Create a custom ribbon object This objective may include but is not limited to: adding custom actions to the ribbon, customizing groups, customizing tabs, customizing the existing ribbon
Customize navigation programmatically This objective may include but is not limited to: TopNav bar, quick launch, custom actions This objective does not include: custom menu controls, custom site map providers
Create and apply branding to a SharePoint site This objective may include but is not limited to: applying custom master pages to content pages and application pages, placeholders, page layouts, programmatically working with themes, deploying CSS, CSSlink, ScriptLink This objective does not include: graphic design, creating a CSS
Caution You should not dispose any SPSite or SPWeb object obtained by any of the above methods. The SharePoint Foundation runtime will dispose of them after page completion. Calling the Dispose or Close method of these objects results in unpredictable behavior. This is in marked contrast to obtaining references to these types of objects by using a constructor, as described later in this topic in the section titled "Console and Windows Applications: Use Object Constructors". There are a number of nuances to the best practices with regard to when SharePoint Foundation objects should and should not be disposed. Carefully study Disposing Objects.
Pasted from <http://msdn.microsoft.com/en-us/library/ms468609.aspx>
Caution You should explicitly dispose of references to objects that are obtained through the AllWebs property. There are a number of nuances to the best practices with regard to when SharePoint Foundation objects should and should not be disposed. Carefully study Disposing Objects.
Pasted from <http://msdn.microsoft.com/en-us/library/ms468609.aspx>
Note Your code should dispose any SPSite or SPWeb object obtained by using a constructor. There are a number of nuances to the best practices with regard to when SharePoint Foundation objects should and should not be disposed. Carefully study Disposing Objects.
Pasted from <http://msdn.microsoft.com/en-us/library/ms468609.aspx>
Note The "localhost" is a Windows alias for the computer on which the code is running. For console applications, Microsoft recommends that you always use "localhost" instead of the actual server name. The reason for this is because a console application can only operate on the local computer anyway. If you hard code a server name, such as "MyServer", then your console application cannot be ported to another computer and your console applications will break if the server's name is ever changed.
Pasted from <http://msdn.microsoft.com/en-us/library/ms468609.aspx>
However, you should avoid constructing an SPSite or SPWeb object simply to get a reference to a parent object. These objects occupy a large amount of memory.
Pasted from <http://msdn.microsoft.com/en-us/library/ms468609.aspx>
Tip In Microsoft SharePoint Foundation, if a "Get" method is available to return a particular type of object, you should use it in preference to using an index of a collection. In general, you get better performance by following this rule. In this case, if your code can pass the needed server-relative URL of the list at run time, you should use the GetList(String) method in preference to an index of the SPWeb.Lists property.
Pasted from <http://msdn.microsoft.com/en-us/library/ff521580.aspx>
For best performance, the preferred choice is to use the GetItemByIdSelectedFields(Int32, String[]) method of the SPList object
Pasted from <http://msdn.microsoft.com/en-us/library/ff521580.aspx>
Important The SPList object has an Items property whose members you can access with an index, but we recommend against doing so because this technique causes all the metadata for all the list items to be fetched from the content database.
Pasted from <http://msdn.microsoft.com/en-us/library/ff521580.aspx>
The runtime searches for the string in internal names first, then field titles, and finally field static names; so your code performs better if you use the internal name when you know it.
Pasted from <http://msdn.microsoft.com/en-us/library/ff521580.aspx>
How to Display a SharePoint Dialog from Ribbon Button and Get Selected Item Context
Pasted from <http://blogs.msdn.com/b/jfrost/archive/2009/11/08/how-to-display-a-sharepoint-dialog-from-ribbon-buttonand-get-selected-item-context.aspx>
Caution If a website is configured to use the top link bar from its parent site, its SPWeb.Navigation.TopNavigationBar property returns null.
Pasted from <http://msdn.microsoft.com/en-us/library/gg277254.aspx>
Check for a duplicate link. One way to check is to call the SPWeb.Navigation.GetNodeByUrl method passing the proposed link's URL as an argument. If a link with that URL is not found, the GetNodeByUrl method returns null. If a link is found, the method returns an SPNavigationNode object. However, the existing link could be on the Quick Launch menu rather than on the top link bar. To verify whether an existing link belongs to the top link bar, check the ParentId property of the node that is returned. The Id of the top link bar is always 1002.
Pasted from <http://msdn.microsoft.com/en-us/library/gg277254.aspx>
There are two different types of Web Parts in SharePoint Foundation. Both are supported, but ASP.NET Web Parts are the recommended type for your projects.
Pasted from <http://msdn.microsoft.com/en-us/library/ms476318.aspx>
DelegateControl Class
Pasted from <http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.delegatecontrol.aspx>
Workflow Definitions
Pasted from <http://msdn.microsoft.com/en-us/library/ms439134.aspx>
Create and modify Business Connectivity Service model in Visual Studio 2010
Friday, January 07, 2011 10:58 AM Business Connectivity Services in SharePoint Foundation
Pasted from <http://msdn.microsoft.com/en-us/library/ee538728.aspx>
When to Use SharePoint Designer vs. Visual Studio When Building Solutions Using BCS
Pasted from <http://msdn.microsoft.com/en-us/library/ee558875.aspx>
CrossListQueryInfo Class
Pasted from <http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.crosslistqueryinfo.aspx>
Note The size of the file that is uploaded cannot exceed 2 GB.
Pasted from <http://msdn.microsoft.com/en-us/library/ms454491.aspx>
SPFileVersion Class
Pasted from <http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfileversion.aspx>
Activity Feed:
Using Activity Feeds with the Object Model
Pasted from <http://msdn.microsoft.com/en-us/library/ff426881.aspx>
Social Data:
Creating and Using Social Data with the Object Model
Pasted from <http://msdn.microsoft.com/en-us/library/ff426882.aspx>
User Profile:
Configuring the User Profile Store Using the Object Model
Pasted from <http://msdn.microsoft.com/en-us/library/ms548804.aspx>
Walkthrough: Creating a Basic Search Web Part Using the Query Object Model
Pasted from <http://msdn.microsoft.com/en-us/library/ms551453.aspx>
FullTextSqlQuery Class
Pasted from <http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.query.fulltextsqlquery.aspx>
Important If the method passed to RunWithElevatedPrivileges includes any write operations, the call to RunWithElevatedPrivileges should be preceded by a call to either SPUtility.ValidateFormDigest() or SPWeb.ValidateFormDigest().
Pasted from <http://msdn.microsoft.com/en-us/library/aa543467.aspx>
Impersonation
Pasted from <http://msdn.microsoft.com/en-us/library/aa543158.aspx>
Note Code that calls ApplyWebConfigModifications works only if it runs in the user context of an administrator on the front-end web server.
Pasted from <http://msdn.microsoft.com/en-us/library/bb861909.aspx>
SPPersistedObject Class
Pasted from <http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.sppersistedobject.aspx>
Sandboxed Solutions
Pasted from <http://msdn.microsoft.com/en-us/library/ff798382.aspx>