Share via


ClientContext class

Represents the context for SharePoint objects and operations.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Client.ClientRuntimeContext
    Microsoft.SharePoint.Client.ClientContext
      Microsoft.ProjectServer.Client.ProjectContext

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Class ClientContext _
    Inherits ClientRuntimeContext
'Usage
Dim instance As ClientContext
public class ClientContext : ClientRuntimeContext

Remarks

Use the ClientContext class to return context information about such objects as the current web application, site, site collection, or server version. The Document library templates sample app for SharePoint includes an example of how to use this object.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

ClientContext members

Microsoft.SharePoint.Client namespace