PublishedTaskCollection class
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 | .NET | JSOM | REST | Type | Description |
---|---|---|---|---|---|
[Integer] | ✓ | PublishedTask | Gets a PublishedTask from the collection at the specified index. | ||
Item | ✓ | PublishedTask | Gets a PublishedTask from the collection at the specified index. |
Methods
Name | .NET | JSOM | REST | Return Type | Description |
---|---|---|---|---|---|
'{PublishedTaskId}' | ✓ | PublishedTask | Gets a PublishedTask from the collection with the specified PublishedTaskId. | ||
GetByGuid(Guid uid) | ✓ | ✓ | ✓ | PublishedTask | Gets a PublishedTask from the collection with the Guid value. |
GetById(String objectId) | ✓ | ✓ | ✓ | PublishedTask | Gets a PublishedTask from the collection with the Id 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
Name | Type | Description |
---|---|---|
PublishedTaskId | String | the id of the PublishedTask |
Return Value
GetByGuid(Guid uid)
Gets a PublishedTask from the collection with the Guid value.
Syntax
PublishedTask GetByGuid(Guid uid)
Parameters
Name | Type | Description |
---|---|---|
uid | Guid | The Guid of the PublishedTask |
Return Value
GetById(String objectId)
Gets a PublishedTask from the collection with the Id value.
Syntax
PublishedTask GetById(String objectId)
Parameters
Name | Type | Description |
---|---|---|
objectId | String | The id of the PublishedTask. |
Return Value
PublishedTask
The task in the published project.