DraftTaskLinkCollection class

inherits members from ClientObjectCollection

Represents a collection of DraftTaskLink objects.

Syntax

CSOM

class DraftTaskLinkCollection 

JSOM

PS.DraftTaskLinkCollection

REST Interface

Supported.

PS.DraftTaskLinkCollection

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/Projects('{projectid}')/Draft/TaskLinks

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
[Integer] DraftTaskLink Gets a DraftTaskLink from the collection at the specified index.
Item DraftTaskLink Gets a DraftTaskLink from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
'{DraftTaskLinkId}' DraftTaskLink Gets a DraftTaskLink from the collection with the specified DraftTaskLinkId.
Add(TaskLinkCreationInformation parameters) DraftTaskLink Adds the DraftTaskLink that is specified by the TaskLinkCreationInformation object to the collection.
GetByGuid(Guid uid) DraftTaskLink Gets a DraftTaskLink from the collection with the Guid value.
GetById(String objectId) DraftTaskLink Gets a DraftTaskLink from the collection with the Id value.
Remove(DraftTaskLink TaskLink) Boolean Removes the specified DraftTaskLink from the collection.

#### Method Details

'{DraftTaskLinkId}'

Gets a DraftTaskLink from the collection with the specified DraftTaskLinkId.

Syntax
DraftTaskLink http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/Projects('{projectid}')/Draft/TaskLinks('{DraftTaskLinkId}')
Parameters
Name Type Description
DraftTaskLinkId String the id of the DraftTaskLink
Return Value

DraftTaskLink

Add(TaskLinkCreationInformation parameters)

Adds the DraftTaskLink that is specified by the TaskLinkCreationInformation object to the collection.

Syntax
DraftTaskLink Add(TaskLinkCreationInformation parameters)
Parameters
Name Type Description
parameters TaskLinkCreationInformation The properties that can be set when creating a draft task link.
Return Value

DraftTaskLink

GetByGuid(Guid uid)

Gets a DraftTaskLink from the collection with the Guid value.

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

DraftTaskLink

GetById(String objectId)

Gets a DraftTaskLink from the collection with the Id value.

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

DraftTaskLink

Removes the specified DraftTaskLink from the collection.

Syntax
Boolean Remove(DraftTaskLink TaskLink)
Parameters
Name Type Description
TaskLink DraftTaskLink The DraftTaskLink to remove.
Return Value

Boolean

See Also

DraftProject
DraftTask
DraftTaskLink
TaskLinkCreationInformation