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

DraftTaskLinkCollection class

Nadin Merali|Last Updated: 5/6/2017

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.NETJSOMRESTTypeDescription
[Integer]DraftTaskLinkGets a DraftTaskLink from the collection at the specified index.
ItemDraftTaskLinkGets a DraftTaskLink from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{DraftTaskLinkId}'DraftTaskLinkGets a DraftTaskLink from the collection with the specified DraftTaskLinkId.
Add(TaskLinkCreationInformation parameters)DraftTaskLinkAdds the DraftTaskLink that is specified by the TaskLinkCreationInformation object to the collection.
GetByGuid(Guid uid)DraftTaskLinkGets a DraftTaskLink from the collection with the Id value.
GetById(String objectId)DraftTaskLinkGets a DraftTaskLink from the collection with the Guid value.
Remove(DraftTaskLink TaskLink)BooleanRemoves 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
NameTypeDescription
DraftTaskLinkIdStringthe 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
NameTypeDescription
parametersTaskLinkCreationInformationThe 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 Id value.

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

DraftTaskLink

GetById(String objectId)

Gets a DraftTaskLink from the collection with the Guid value.

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

DraftTaskLink

Removes the specified DraftTaskLink from the collection.

Syntax
Boolean Remove(DraftTaskLink TaskLink)
Parameters
NameTypeDescription
TaskLinkDraftTaskLinkThe DraftTaskLink to remove.
Return Value

Boolean

See Also

DraftProject
DraftTask
DraftTaskLink
TaskLinkCreationInformation

© 2018 Microsoft