Share via


DraftAssignmentCollection class

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 .NET JSOM REST Type Description
[Integer] DraftAssignment Gets a DraftAssignment from the collection at the specified index.
Item DraftAssignment Gets a DraftAssignment from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
'{DraftAssignmentId}' DraftAssignment Gets a DraftAssignment from the collection with the specified DraftAssignmentId.
Add(AssignmentCreationInformation parameters) DraftAssignment Adds the DraftAssignment that is specified by the AssignmentCreationInformation object to the collection.
GetByGuid(Guid uid) DraftAssignment Gets a DraftAssignment from the collection with the Guid value.
GetById(String objectId) DraftAssignment Gets a DraftAssignment from the collection with the Id value.
Remove(DraftAssignment assignment) Boolean Removes 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
Name Type Description
DraftAssignmentId String the 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
Name Type Description
parameters AssignmentCreationInformation The properties that can be set when creating a draft assignment.
Return Value

DraftAssignment

GetByGuid(Guid uid)

Gets a DraftAssignment from the collection with the Guid value.

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

DraftAssignment

GetById(String objectId)

Gets a DraftAssignment from the collection with the Id value.

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

DraftAssignment

Remove(DraftAssignment assignment)

Removes the specified DraftAssignment from the collection.

Syntax
Boolean Remove(DraftAssignment assignment)
Parameters
Name Type Description
assignment DraftAssignment The DraftAssignment to remove.
Return Value

Boolean

See Also

AssignmentCreationInformation
DraftAssignment
DraftProject
DraftProjectResource
DraftTask