Share via


ResourceEngagementCollection class

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 .NET JSOM REST Type Description
[Integer] ResourceEngagement Gets a ResourceEngagement from the collection at the specified index.
Item ResourceEngagement Gets a ResourceEngagement from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
'{ResourceEngagementId}' ResourceEngagement Gets a ResourceEngagement from the collection with the specified ResourceEngagementId.
GetByGuid(Guid uid) ResourceEngagement Gets a ResourceEngagement from the collection with the Guid value.
GetById(String objectId) ResourceEngagement Gets a ResourceEngagement from the collection with the Id value.
Remove(Engagement engagement) Boolean Removes the specified ResourceEngagement from the collection.
Update() void Updates 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
Name Type Description
ResourceEngagementId String the id of the ResourceEngagement
Return Value

ResourceEngagement

GetByGuid(Guid uid)

Gets a ResourceEngagement from the collection with the Guid value.

Syntax
ResourceEngagement GetByGuid(Guid uid)
Parameters
Name Type Description
uid Guid The Guid of the ResourceEngagement
Return Value

ResourceEngagement

GetById(String objectId)

Gets a ResourceEngagement from the collection with the Id value.

Syntax
ResourceEngagement GetById(String objectId)
Parameters
Name Type Description
objectId String The id of the ResourceEngagement.
Return Value

ResourceEngagement

Remove(Engagement engagement)

Removes the specified ResourceEngagement from the collection.

Syntax
Boolean Remove(Engagement engagement)
Parameters
Name Type Description
engagement Engagement The ResourceEngagement to remove.
Return Value

Boolean

Update()

Updates the resource engagement collection.

Syntax
void Update()
Parameters

None

Return Value

void

See Also

EnterpriseResource
ResourceEngagement