For developers who have just started to access Sharepoint, even if they have rich ASP. NET development experience, it may be difficult to find a way to start with Sharepoint. For any development platform, the process of learning and developing generally includes: use of development tools, selection of development means, and writing of development languages. Sharepoint is no exception. Specifically, for Sharepoint 2010, the use of development tools is how to use Visual Studio 2010 more efficiently and conveniently. Development means refer to different requirements when faced, which Project template should we select, how to use this template to create the content we need, and how to compile it in development language, it refers to the objects and methods used, the methods used to access the data we need, and the corresponding operations. This is the content mainly introduced in this chapter.
This chapter describes how to use the Sharepoint Server-side object model to access and operate data in Sharepoint. The SharePoint object model is always used throughout SharePoint development. For a Sharepoint developer, you must master the basic capabilities. This chapter starts with the basic rules and features of the SharePoint object model, introduces the access, operation methods, and important attributes of some common objects, and uses some of the most common application scenarios, this section describes the practical application of the object model.
As a guide to SharePoint 2010 development, we do not require readers to understand the development knowledge of SharePoint 2003 or 2007. But when reading this chapter, we hope that readers can understand some basic concepts in Sharepoint, such as websites, lists, list entries, list columns, and list views. When introducing basic data access operations, this chapter only introduces some of the most common and important methods and attributes, and provides some simple and practical code examples, but it does not list every method and attribute for each specific category (this book is not a tool book. For details, refer to the reference section of the class library in the SDK, most common objects have sample code snippets ).
On the other hand, if you already have development experience in earlier versions of SharePoint, you can skip some basic introductions and focus only on some newly added features and features in SharePoint 2010. In terms of basic use of object models, 2010 is not very different from previous versions. In the past, most of the usage methods can still be used normally, however, in addition, many new attributes and new methods are added, which are more practical and convenient. For these new features, we will mark them during the introduction.
In the text section of this chapter, a word starting with an uppercase letter represents a class name, such as spweb. A word starting with a lowercase letter represents an instance of this class, such as spweb.
Preface to the Sharepoint Server-side Object Model