Share via

ClientContext class

Represents the context for SharePoint objects and operations.

Inheritance hierarchy


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


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


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


ClientContext members

Microsoft.SharePoint.Client namespace