Table of contents
API
TOC
Collapse the table of content
Expand the table of content

ResourceEngagementCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Syntax

CSOM

class ResourceEngagementCollection 

JSOM

PS.ResourceEngagementCollection

REST Interface

Supported.

PS.ResourceEngagementCollection

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/EnterpriseResources('{resourceid}')/Engagements

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]ResourceEngagementGets a ResourceEngagement from the collection at the specified index.
ItemResourceEngagementGets a ResourceEngagement from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{ResourceEngagementId}'ResourceEngagementGets a ResourceEngagement from the collection with the specified ResourceEngagementId.
GetByGuid(Guid uid)ResourceEngagementGets a ResourceEngagement from the collection with the Id value.
GetById(String objectId)ResourceEngagementGets a ResourceEngagement from the collection with the Guid value.
Remove(Engagement engagement)BooleanRemoves the specified ResourceEngagement from the collection.
Update()voidUpdates the resource engagement collection.


Method Details

'{ResourceEngagementId}'

Gets a ResourceEngagement from the collection with the specified ResourceEngagementId.

Syntax
ResourceEngagement http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/EnterpriseResources('{resourceid}')/Engagements('{ResourceEngagementId}')
Parameters
NameTypeDescription
ResourceEngagementIdStringthe id of the ResourceEngagement
Return Value

ResourceEngagement

GetByGuid(Guid uid)

Gets a ResourceEngagement from the collection with the Id value.

Syntax
ResourceEngagement GetByGuid(Guid uid)
Parameters
NameTypeDescription
uidGuidThe Guid of the ResourceEngagement
Return Value

ResourceEngagement

GetById(String objectId)

Gets a ResourceEngagement from the collection with the Guid value.

Syntax
ResourceEngagement GetById(String objectId)
Parameters
NameTypeDescription
objectIdStringThe id of the ResourceEngagement.
Return Value

ResourceEngagement

Remove(Engagement engagement)

Removes the specified ResourceEngagement from the collection.

Syntax
Boolean Remove(Engagement engagement)
Parameters
NameTypeDescription
engagementEngagementThe ResourceEngagement to remove.
Return Value

Boolean

Update()

Updates the resource engagement collection.

Syntax
void Update()
Parameters

None

Return Value

void

See Also

EnterpriseResource
ResourceEngagement

© 2018 Microsoft