Exploring Context in Client Object Model

The process of communicating with the SharePoint server from the client side starts through the ClientContext class, which inherits from ClientRuntimeContext. This class provides the capability to control the communication with the SharePoint server. You can specify the following while accessing the SharePoint server:

• URL

• Site

• Web

• Authentication Mode

• Credentials

This hour does not delve into the authentication mode and credentials now as this is outside the scope of this book. For now, just remember that you can use forms authentication as well to access the SharePoint site, and the client object model provides the means to pass the credentials as well.

Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.