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

EnterpriseProjectTypeCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of EnterpriseProjectType (EPT) objects.

Syntax

CSOM

class EnterpriseProjectTypeCollection 

JSOM

PS.EnterpriseProjectTypeCollection

REST Interface

Supported.

PS.EnterpriseProjectTypeCollection

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/EnterpriseProjectTypes

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]EnterpriseProjectTypeGets a EnterpriseProjectType from the collection at the specified index.
ItemEnterpriseProjectTypeGets a EnterpriseProjectType from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{EnterpriseProjectTypeId}'EnterpriseProjectTypeGets a EnterpriseProjectType from the collection with the specified EnterpriseProjectTypeId.
Add(EnterpriseProjectTypeCreationInformation parameters)EnterpriseProjectTypeAdds the EnterpriseProjectType that is specified by the EnterpriseProjectTypeCreationInformation object to the collection.
GetByGuid(Guid uid)EnterpriseProjectTypeGets a EnterpriseProjectType from the collection with the Id value.
GetById(String objectId)EnterpriseProjectTypeGets a EnterpriseProjectType from the collection with the Guid value.
Remove(EnterpriseProjectType ept)BooleanRemoves the specified EnterpriseProjectType from the collection.
Update()voidUpdates the enterprise project type collection.


Method Details

'{EnterpriseProjectTypeId}'

Gets a EnterpriseProjectType from the collection with the specified EnterpriseProjectTypeId.

Syntax
EnterpriseProjectType http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/EnterpriseProjectTypes('{EnterpriseProjectTypeId}')
Parameters
NameTypeDescription
EnterpriseProjectTypeIdStringthe id of the EnterpriseProjectType
Return Value

EnterpriseProjectType

Add(EnterpriseProjectTypeCreationInformation parameters)

Adds the EnterpriseProjectType that is specified by the EnterpriseProjectTypeCreationInformation object to the collection.

Syntax
EnterpriseProjectType Add(EnterpriseProjectTypeCreationInformation parameters)
Parameters
NameTypeDescription
parametersEnterpriseProjectTypeCreationInformationThe properties that can be set when creating a enterprise project type.
Return Value

EnterpriseProjectType

GetByGuid(Guid uid)

Gets a EnterpriseProjectType from the collection with the Id value.

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

EnterpriseProjectType

GetById(String objectId)

Gets a EnterpriseProjectType from the collection with the Guid value.

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

EnterpriseProjectType

Remove(EnterpriseProjectType ept)

Removes the specified EnterpriseProjectType from the collection.

Syntax
Boolean Remove(EnterpriseProjectType ept)
Parameters
NameTypeDescription
eptEnterpriseProjectTypeThe EnterpriseProjectType to remove.
Return Value

Boolean

Update()

Updates the enterprise project type collection.

Syntax
void Update()
Parameters

None

Return Value

void

See Also

EnterpriseProjectType
EnterpriseProjectTypeCreationInformation
ProjectContext

© 2018 Microsoft