Development How-to Topics
This guidance contains the following How-to topics for specific development tasks:
- How to: Create a Custom Content Type with Event Receivers. This topic demonstrates how to create a custom content type in Visual Studio using Visual Studio extensions for Windows SharePoint Services version 1.3.
- How to: Wrap a User Control Inside of a Web Part for SharePoint. This topic demonstrates how to create a Web Part to serve as a wrapper for an ASP.NET user control that is hosted inside of a SharePoint application. It also demonstrates how to create Web Part properties that are propagated to the user control.
- How to: Debug SharePoint Applications. This topic includes procedures that show how to debug your application with Visual Studio extensions for Windows SharePoint Services. It also shows how to perform manual and remote debugging.
- How to: Implement a SharePoint Workflow with ASP.NET Forms. This topic shows how to use Visual Studio to create ASP.NET custom workflow task forms.
- How to: Perform ASP.NET-Related Development with Visual Studio. This topic demonstrates how custom ASPX pages and custom ASCX controls can be developed in a Web application project and then deployed using an extensions project.
- How to: Programmatically Configure a WCF Client Endpoint. This topic includes procedures that describe how developers can create a SharePoint Web Part that uses data from a Windows Communication Foundation (WCF) Web service. The Web Part programmatically configures the WCF clients.
- How to: Use the Hierarchical Configuration to Store an Endpoint Address. This topic demonstrates how to programmatically store and retrieve the endpoint addresses of WCF services with the Web Part that is implemented in How to: Programmatically Configure a WCF Endpoint.
- How to: Create an Automated Build and Deployment Solution with Team Foundation Server Team Build. This topic walks you through setting up a Build definition and setting up a computer to run the defined build. The Build function sets up and runs MSBuild on a targeted computer that is running the Visual Studio Team Foundation Server build agent. The build agent provides continuous building and testing using a Visual Studio Team System project.
- Service Locator Development How-to Topics. The SharePoint service locator is a reusable component that allows you to decouple consumers of an interface from the implementations of that interface. Instead of creating an object by invoking the constructor of a class, you request an object with a specified interface from the service locator. The specific tasks are the following:
- Configuration Manager Development How-to Topics. The SharePoint Guidance Library includes a hierarchical configuration manager that can safely store and retrieve configuration settings using SharePoint property bags. The topic includes the following procedures:
- How to: Add and Update Configuration Settings Using Configuration Manager. This topic describes how to save configuration data to any of the four levels that make up the SharePoint context.
- How to: Remove a Configuration Setting Using Configuration Manager. This topic describes how to remove configuration data from any of the four levels that make up the SharePoint context.
- How to: Retrieve Configuration Settings Using Configuration Manager. This topic describes how to retrieve configuration data from any of the four levels that make up the SharePoint context.
- List Repository Development How-to Topics. A repository is a design pattern that separates a data source from its associated business logic by encapsulating the data access details. Repositories translate the underlying data representation into an entity model that fits the problem domain. The SharePoint Guidance Library includes classes that help you to implement repositories for SharePoint lists. The topic includes the following procedures:
- How to: Create a List Repository. This topic describes how to create a repository class for a SharePoint list.
- How to: Submit a Query to a List. This topic describes how to use the CAMLQueryBuilder class to retrieve a list item from a SharePoint list.
- How to: Populate a Business Entity from a List Item. This topic demonstrates how to convert a list item into a strongly-typed business entity.
- How to: Save a Business Entity to a List. This topic demonstrates how to convert a business entity into a list item and then add it to a SharePoint list.
- How to: Create a Custom Subsite Creation Workflow. The SharePoint Guidance Library provides a subsite creation component. The subsite creation component creates subsites that are based on site templates and site definitions. The component includes a SharePoint sequential workflow and configuration data that is stored in a SharePoint list. This procedure demonstrates how to create a custom workflow by reusing activities that are included in the SharePoint Guidance Library.
- How to: Use the Safe Script Manager to Provide AJAX Support to Web Parts. The SafeScriptManager class is an ASP.NET custom control that loads the .NET Framework's ScriptManager control if it is not already present on the current Web page. The procedure demonstrates how to add the safe script manager, either in code or by including it on a custom master page.
- Logging and Tracing Development How-to Topics. The SharePoint Guidance Library includes a basic logging and tracing component that is tailored to the SharePoint environment. This topic includes the following procedures:
- How to: Log an Event for Operations. This topic describes how to log messages that are meant for system administrators.
- How to: Log an Exception to Operations. This topic describes how to log unhandled exceptions.
- How to: Create a Trace Message During Development. This topic describes how to write debugging information to the Unified Logging Service (ULS) trace log.
- How to: Customize the Logger for Unit Testing. This topic describes how to create a mock logger for unit testing.
- How to: Customize the Logger in an Application. This topic describes how to use a custom logger.
- How to: Select a Custom Event Source Name. This topic describes how to use an event source other than the default event source.
- How to: Expose BDC Profile Pages. By default, the profile page is hosted on the Shared Services Administration site collection where the Business Data Catalog (BDC) administration site is located. This procedure describes how you can create your own BDC profile pages and host them in any site that is not part of the Shared Services Provider site collection.
- How to: Create Automated UI Test Methods for SharePoint. This topic explains how to use the Microsoft Visual Studio Team System Web test record and playback engine.
- How to: Lock Down Identity Viewing for a Site. This topic includes a procedure that shows how to prevent unauthorized users from seeing the People.aspx page.
- How to: Expose a SharePoint Application to the Extranet and Use Forms-Based Authentication. This topic includes a procedure that shows how to extend a SharePoint application to the extranet and enable the application to use forms-based authentication.