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

PublishedTaskCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of tasks in a published project.

Syntax

CSOM

class PublishedTaskCollection 

JSOM

PS.PublishedTaskCollection

REST Interface

Supported.

PS.PublishedTaskCollection

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectid}')/Tasks

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]PublishedTaskGets a PublishedTask from the collection at the specified index.
ItemPublishedTaskGets a PublishedTask from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{PublishedTaskId}'PublishedTaskGets a PublishedTask from the collection with the specified PublishedTaskId.
GetByGuid(Guid uid)PublishedTaskGets a PublishedTask from the collection with the Id value.
GetById(String objectId)PublishedTaskGets a PublishedTask from the collection with the Guid value.


Method Details

'{PublishedTaskId}'

Gets a PublishedTask from the collection with the specified PublishedTaskId.

Syntax
PublishedTask http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectid}')/Tasks('{PublishedTaskId}')
Parameters
NameTypeDescription
PublishedTaskIdStringthe id of the PublishedTask
Return Value

PublishedTask

GetByGuid(Guid uid)

Gets a PublishedTask from the collection with the Id value.

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

PublishedTask

GetById(String objectId)

Gets a PublishedTask from the collection with the Guid value.

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

PublishedTask
The task in the published project.

See Also

PublishedProject
PublishedTask

© 2018 Microsoft