Export (0) Print
Expand All

ProjectServer class

Office 2013

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

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.ProjectServer.Client.ProjectServer

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

[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.

NoteNote

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.

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