EnterpriseProjectTypeCollection class
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 | .NET | JSOM | REST | Type | Description |
---|---|---|---|---|---|
[Integer] | ✓ | EnterpriseProjectType | Gets a EnterpriseProjectType from the collection at the specified index. | ||
Item | ✓ | EnterpriseProjectType | Gets a EnterpriseProjectType from the collection at the specified index. |
Methods
Name | .NET | JSOM | REST | Return Type | Description |
---|---|---|---|---|---|
'{EnterpriseProjectTypeId}' | ✓ | EnterpriseProjectType | Gets a EnterpriseProjectType from the collection with the specified EnterpriseProjectTypeId. | ||
Add(EnterpriseProjectTypeCreationInformation parameters) | ✓ | ✓ | ✓ | EnterpriseProjectType | Adds the EnterpriseProjectType that is specified by the EnterpriseProjectTypeCreationInformation object to the collection. |
GetByGuid(Guid uid) | ✓ | ✓ | ✓ | EnterpriseProjectType | Gets a EnterpriseProjectType from the collection with the Guid value. |
GetById(String objectId) | ✓ | ✓ | ✓ | EnterpriseProjectType | Gets a EnterpriseProjectType from the collection with the Id value. |
Remove(EnterpriseProjectType ept) | ✓ | ✓ | Boolean | Removes the specified EnterpriseProjectType from the collection. | |
Update() | ✓ | ✓ | void | Updates 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
Name | Type | Description |
---|---|---|
EnterpriseProjectTypeId | String | the id of the EnterpriseProjectType |
Return Value
Add(EnterpriseProjectTypeCreationInformation parameters)
Adds the EnterpriseProjectType that is specified by the EnterpriseProjectTypeCreationInformation object to the collection.
Syntax
EnterpriseProjectType Add(EnterpriseProjectTypeCreationInformation parameters)
Parameters
Name | Type | Description |
---|---|---|
parameters | EnterpriseProjectTypeCreationInformation | The properties that can be set when creating a enterprise project type. |
Return Value
GetByGuid(Guid uid)
Gets a EnterpriseProjectType from the collection with the Guid value.
Syntax
EnterpriseProjectType GetByGuid(Guid uid)
Parameters
Name | Type | Description |
---|---|---|
uid | Guid | The Guid of the EnterpriseProjectType |
Return Value
GetById(String objectId)
Gets a EnterpriseProjectType from the collection with the Id value.
Syntax
EnterpriseProjectType GetById(String objectId)
Parameters
Name | Type | Description |
---|---|---|
objectId | String | The id of the EnterpriseProjectType. |
Return Value
Remove(EnterpriseProjectType ept)
Removes the specified EnterpriseProjectType from the collection.
Syntax
Boolean Remove(EnterpriseProjectType ept)
Parameters
Name | Type | Description |
---|---|---|
ept | EnterpriseProjectType | The 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