Share Point 2010 Notes

Embed Size (px)

Citation preview

Exam 70-573 Preparationhttp://blog.beckybertram.com/Lists/Exam%2070573%20Study %20Guide/AllItems.aspx

Working with the SharePoint User Interface (19%)A) Manage SPSite and SPWeb programmatically by using Visual Studio 2010 SPSite - Represents a collection of sites in a Web application, including a top-level Web site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site collections in the Web application. SPContext - Represents the context of an HTTP request in Microsoft SharePoint Foundation SPSite.Features - Gets the collection of SPFeature objects that are associated with the site collection. SPFeature represents the state of a feature at its corresponding scope SPFeatureCollection.Add() - Activates a Feature by using the Feature definition with the specified ID to create a new SPFeature object and then add it to the collection. SPSite.OpenWeb() SPWeb - Represents a SharePoint Foundation website. SPWeb.Features SPWeb.Properties SPWeb.Webs SPWebCollection.Add() Disposing Objects SPFile - Represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder. Creating Sub Web Referencing SPFile Manipulate Property Bag http://msdn.microsoft.com/enus/library/microsoft.sharepoint.spweb.properties.aspx When to Call Update SharePoint Foundation typically does not save modifications of object properties to the database until you call the Update method on the specified object Feature Activation/Deactivation B) Implement a dialog by using the Dialog Framework Provided by JavaScript Client Model. C) Creating custom ribbon object http://msdn.microsoft.com/en-us/library/ie/gg552606.aspx

D) Customize navigation programmatically Customize Top Link Bar - http://msdn.microsoft.com/enus/library/ie/gg252669.aspx Website Navigation - http://msdn.microsoft.com/enus/library/ms471078.aspx E) Create and apply branding to SharePoint site CSSLink - Inserts a CSS LINK element into the resulting HTML page and applies an external style sheet(s) defined by CssRegistration ScriptLink - Provides properties and methods for registering resources, such as scripts, on a page so that they can be requested when the page is rendered. SharePoint Page Layout Model - page layout is template that is used with Master Page to control look, feel and content of page. Each page layout has associated Content Type that determines what content can be stored on pages based on that page layout. Each Content Type contains columns that define all content that appears on the page (with metadata). http://msdn.microsoft.com/en-us/library/ie/ms544928.aspx SharePoint Page - Master Page (contain controls shared across multiple page layouts, like navigation, search etc.) & Page Layout (contain field controls and Web Parts) SPWeb.ThemedCssFolderUrl - Gets or sets the URL to the folder that contains the cascading style sheets (CSS) file that is used in the theme for the website. SPWeb.MasterUrl - Gets or sets the URL of the master page that is used for the website. SPWeb.AlternateCssUrl - Gets or sets the URL for an alternate cascading style sheet (CSS) to use in the website

Developing Web Parts and Controls (21%)A) Create Web Parts Adding a Web Part Property - After adding the new Web Part, add a property that can be personalized for the Web Part. The Web Part property determines the text that is rendered inside the Web Part. This is personalized based on the individual user. Overriding the CreateChildControls Method - you must add functionality to your Web Part. By overriding the CreateChildControls method, you can tell the Web Part what operations to perform when the page is visited. In this example, the Web Part renders the user-defined text. Override RenderWebPart Method - for rending webpart B) Create connectable web parts Example - a webpart provides a string to be consumed by another webpart http://msdn.microsoft.com/en-us/library/ie/ms469765.aspx 1) Creating an interface to define the string that is being provided. 2) Creating a Web Part by using the Microsoft Visual StudioWeb Part item template. 3) Creating a provider Web Part that defines a string. 4) Creating a consumer Web Part that uses and displays the string. 5) Creating a Web Parts page and connecting the provider and consumer

Web Parts. Debugging WebPart Open webpart code in VS2010 Attach .NET w3wp.exe process and set breakpoints Refresh the page so that webpart loads in and debugging can start Create & Implement Delegate Control A delegate control defines a region in an aspx page that allows the content to be replaced with our custom content. This custom content is created via a SharePoint feature, and when deployed and activated, replaces the standard content at runtime. http://blog.concurrency.com/sharepoint/delegate-controls-in-sharepoint2010/

Developing Business Logic (19%)A) Implement a custom workflow in VS2010 http://technet.microsoft.com/en-au/library/cc263308.aspx B) Create and Implement Event Handler Event Handlers allow system to raise notification for something to be done based on user input, ex. when a document is added to library, user want an exclusive task list specifically for that document. C) Customize Enterprise Content Management (ECM) http://blogs.kma-llc.net/microknowledge/2010/08/the-ultimate-sharepoint2010-enterprise-content-management-ecm-cheat-sheet.html D) Create, implement and debug a Timer job Timer Job - performs infrastructure tasks for web application, such as sending email alerts etc. Create custom timer job http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointti merjob2010/ Microsoft.SharePoint.Administration.SPJobDefinition - In VS2010, create a class that inherits from this class Microsoft.SharePoint.SPFeatureReceiver - This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.