Share via


ProjectContext class

Maintains the client-side context for development with a Project Web App instance, and contains the enterprise-wide collections of Project Server objects that exist in Project Web App.

Syntax

CSOM

class ProjectContext 

JSOM

PS.ProjectContext

REST Interface

Supported.

PS.ProjectContext

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
Calendars CalendarCollection Gets the collection of calendars for the Project Server instance.
CustomFields CustomFieldCollection Gets the collection of enterprise custom field definitions in the Project Web App instance.
EngagementsTimephasedPageSize Integer The number of Engagements objects that can be returned in a single request.
EnterpriseProjectTypes EnterpriseProjectTypeCollection Gets the collection of enterprise project types (EPTs) in the Project Web App instance.
EnterpriseResources EnterpriseResourceCollection Gets the collection of enterprise resources in a Project Web App instance.
EnterpriseResourcesPageSize Integer The number of EnterpriseResource that can be pulled down with child elements in a single request
EntityTypes EntityTypes Gets the types of Project Server entities that are exposed through the CSOM.
EventHandlers EventHandlerCollection Gets the collection of event handlers that are defined in a Project Web App instance.
Events EventCollection Gets the collection of event objects in a Project Web App instance.
IsDelegate Boolean Gets a value that indicates whether the current user has started a delegation session in PWA. For CSOM/JSOM support see ServiceStatus
IsReadOnly Boolean Gets a value that indicates whether the Project Server database is in read-only mode. For CSOM/JSOM support see ServiceStatus
LookupTables LookupTableCollection Gets the collection of lookup table definitions in the Project Web App instance.
Phases PhaseCollection Gets the collection of Project Server workflow phases in the Project Web App instance.
ProjectDetailPages ProjectDetailPageCollection Gets a collection of project detail pages in the Project Server instance.
Projects ProjectCollection Gets the collection of projects in the Project Web App instance.
ProjectsPageSize Integer The number of PublishedProject objects that can be in a single request when also requesting child entities.
ServiceStatus ServiceStatus Gets information about the status of the Project Server service.
Stages StageCollection Gets the collection of Project Server workflow stages in a Project Web App instance.
TimeSheetPeriods TimeSheetPeriodCollection Gets a collection of time sheet periods.
WorkflowActivities WorkflowActivities Gets the methods that Project Server workflows can call at run time.
WorkflowDesigner WorkflowDesigner Gets a workflow designer that developers can call at design time.

Methods

Name .NET JSOM REST Return Type Description
GetDeletedPublishedAssignments(DateTime deletedDate) DeletedPublishedAssignmentCollection Get all Published assignments deleted since the specified date.
StopDelegation() void Stops the current delegation session.

#### Method Details

GetDeletedPublishedAssignments(DateTime deletedDate)

Get all Published assignments deleted since the specified date.

Syntax
DeletedPublishedAssignmentCollection GetDeletedPublishedAssignments(DateTime deletedDate)
Parameters
Name Type Description
deletedDate DateTime The earliest date to retrieve deleted published assignments from.
Return Value

DeletedPublishedAssignmentCollection

StopDelegation()

Stops the current delegation session.

Syntax
void StopDelegation()
Parameters

None

Return Value

void

See Also

CalendarCollection
CustomFieldCollection
EnterpriseProjectTypeCollection
EnterpriseResourceCollection
EntityTypes
EventHandlerCollection
EventCollection
LookupTableCollection
PhaseCollection
ProjectDetailPageCollection
ProjectCollection
StageCollection
TimeSheetPeriodCollection
WorkflowActivities