PublishedProjectResourceCollection class
inherits members from ClientObjectCollection
Represents a collection of resources in a published project.
Syntax
CSOM
class PublishedProjectResourceCollection
JSOM
PS.PublishedProjectResourceCollection
REST Interface
Supported.
PS.PublishedProjectResourceCollection
http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectid}')/ProjectResources
Members
✓ - Read Support ✓ʷ - Write Support
Properties
Name | .NET | JSOM | REST | Type | Description |
---|---|---|---|---|---|
[Integer] | ✓ | PublishedProjectResource | Gets a PublishedProjectResource from the collection at the specified index. | ||
Item | ✓ | PublishedProjectResource | Gets a PublishedProjectResource from the collection at the specified index. |
Methods
Name | .NET | JSOM | REST | Return Type | Description |
---|---|---|---|---|---|
'{PublishedProjectResourceId}' | ✓ | PublishedProjectResource | Gets a PublishedProjectResource from the collection with the specified PublishedProjectResourceId. | ||
GetByGuid(Guid uid) | ✓ | ✓ | ✓ | PublishedProjectResource | Gets a PublishedProjectResource from the collection with the Guid value. |
GetById(String objectId) | ✓ | ✓ | ✓ | PublishedProjectResource | Gets a PublishedProjectResource from the collection with the Id value. |
#### Method Details
'{PublishedProjectResourceId}'
Gets a PublishedProjectResource from the collection with the specified PublishedProjectResourceId.
Syntax
PublishedProjectResource http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectid}')/ProjectResources('{PublishedProjectResourceId}')
Parameters
Name | Type | Description |
---|---|---|
PublishedProjectResourceId | String | the id of the PublishedProjectResource |
Return Value
GetByGuid(Guid uid)
Gets a PublishedProjectResource from the collection with the Guid value.
Syntax
PublishedProjectResource GetByGuid(Guid uid)
Parameters
Name | Type | Description |
---|---|---|
uid | Guid | The Guid of the PublishedProjectResource |
Return Value
PublishedProjectResource
A PublishedProjectResource object.
GetById(String objectId)
Gets a PublishedProjectResource from the collection with the Id value.
Syntax
PublishedProjectResource GetById(String objectId)
Parameters
Name | Type | Description |
---|---|---|
objectId | String | The id of the PublishedProjectResource. |