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

DraftAssignmentCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of DraftAssignment objects.

Syntax

CSOM

class DraftAssignmentCollection 

JSOM

PS.DraftAssignmentCollection

REST Interface

Supported.

PS.DraftAssignmentCollection

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

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]DraftAssignmentGets a DraftAssignment from the collection at the specified index.
ItemDraftAssignmentGets a DraftAssignment from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{DraftAssignmentId}'DraftAssignmentGets a DraftAssignment from the collection with the specified DraftAssignmentId.
Add(AssignmentCreationInformation parameters)DraftAssignmentAdds the DraftAssignment that is specified by the AssignmentCreationInformation object to the collection.
GetByGuid(Guid uid)DraftAssignmentGets a DraftAssignment from the collection with the Id value.
GetById(String objectId)DraftAssignmentGets a DraftAssignment from the collection with the Guid value.
Remove(DraftAssignment assignment)BooleanRemoves the specified DraftAssignment from the collection.


Method Details

'{DraftAssignmentId}'

Gets a DraftAssignment from the collection with the specified DraftAssignmentId.

Syntax
DraftAssignment http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/Projects('{projectid}')/Draft/Assignments('{DraftAssignmentId}')
Parameters
NameTypeDescription
DraftAssignmentIdStringthe id of the DraftAssignment
Return Value

DraftAssignment

Add(AssignmentCreationInformation parameters)

Adds the DraftAssignment that is specified by the AssignmentCreationInformation object to the collection.

Syntax
DraftAssignment Add(AssignmentCreationInformation parameters)
Parameters
NameTypeDescription
parametersAssignmentCreationInformationThe properties that can be set when creating a draft assignment.
Return Value

DraftAssignment

GetByGuid(Guid uid)

Gets a DraftAssignment from the collection with the Id value.

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

DraftAssignment

GetById(String objectId)

Gets a DraftAssignment from the collection with the Guid value.

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

DraftAssignment

Remove(DraftAssignment assignment)

Removes the specified DraftAssignment from the collection.

Syntax
Boolean Remove(DraftAssignment assignment)
Parameters
NameTypeDescription
assignmentDraftAssignmentThe DraftAssignment to remove.
Return Value

Boolean

See Also

AssignmentCreationInformation
DraftAssignment
DraftProject
DraftProjectResource
DraftTask

© 2018 Microsoft