ProjectServer class

Used internally by client-side code. To initialize the client context for development with the Project Server CSOM, use ProjectContext.

Inheritance hierarchy


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


<ScriptTypeAttribute("PS.ProjectServer", ServerTypeId := "{3a609e5f-e2a1-497c-87a2-e5e8a781c096}")> _
Public NotInheritable Class ProjectServer _
    Inherits ClientObject
Dim instance As ProjectServer
[ScriptTypeAttribute("PS.ProjectServer", ServerTypeId = "{3a609e5f-e2a1-497c-87a2-e5e8a781c096}")]
public sealed class ProjectServer : ClientObject


You should use the ProjectContext class for development with the CSOM in Microsoft Project Server 2013. Because the object inherits from the SharePoint ClientContext object, it maintains the context for development with both the Project Server CSOM and the SharePoint CSOM.


An advantage of the ProjectContext class is that it includes the WaitForQueue method. If you used the ProjectServer class, you would have to develop your own routines to wait for a queue job to complete.

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


ProjectServer members

Microsoft.ProjectServer.Client namespace