Resource.ReadResourceAvailabilityForGrid Method

Returns a dataset of resource availability in a time-phased data structure.

Namespace:  WebSvcResource
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Resource/ReadResourceAvailabilityForGrid", RequestNamespace := "http://schemas.microsoft.com/office/project/server/webservices/Resource/",  _
    ResponseNamespace := "http://schemas.microsoft.com/office/project/server/webservices/Resource/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ReadResourceAvailabilityForGrid ( _
    resUIDs As Guid(), _
    startDate As DateTime, _
    endDate As DateTime, _
    timeScale As Short, _
    includeProposedBookings As Boolean _
) As DataSet
'Usage
Dim instance As Resource
Dim resUIDs As Guid()
Dim startDate As DateTime
Dim endDate As DateTime
Dim timeScale As Short
Dim includeProposedBookings As Boolean
Dim returnValue As DataSet

returnValue = instance.ReadResourceAvailabilityForGrid(resUIDs, _
    startDate, endDate, timeScale, includeProposedBookings)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Resource/ReadResourceAvailabilityForGrid", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Resource/", 
    ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Resource/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public DataSet ReadResourceAvailabilityForGrid(
    Guid[] resUIDs,
    DateTime startDate,
    DateTime endDate,
    short timeScale,
    bool includeProposedBookings
)

Parameters

  • resUIDs
    Type: []
    An array of Guids
  • timeScale
    Type: System.Int16
    Desired scale of the TimephasedData table.
    • Days = 3,

    • Week = 4,

    • Month = 5,

    • Year = 7

  • includeProposedBookings
    Type: System.Boolean
    Include assignments for which the resource is only tentatively scheduled.

Return Value

Type: System.Data.DataSet
A dataset with a table of Dates, and a table of TimephasedData.

Remarks

Project Server Permissions

Permission

Description

ViewResourceAvailability

View resource allocation data. Global permission.

See Also

Reference

Resource Class

Resource Members

WebSvcResource Namespace