ResourceDataSet.ResourceAvailabilitiesDataTable.AddResourceAvailabilitiesRow Method (ResourceDataSet.ResourcesRow, DateTime, DateTime, Double)
Adds a ResourceAvailabilitiesRow object to the ResourceAvailabilitiesDataTable by using separate parameters.
Namespace: [Workflow Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Workflow.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Workflow.asmx?wsdl
Syntax
'Declaration
Public Function AddResourceAvailabilitiesRow ( _
parentResourcesRowByResourcesResourceAvailabilities As ResourceDataSet.ResourcesRow, _
RES_AVAIL_FROM As DateTime, _
RES_AVAIL_TO As DateTime, _
RES_AVAIL_UNITS As Double _
) As ResourceDataSet.ResourceAvailabilitiesRow
'Usage
Dim instance As ResourceDataSet.ResourceAvailabilitiesDataTable
Dim parentResourcesRowByResourcesResourceAvailabilities As ResourceDataSet.ResourcesRow
Dim RES_AVAIL_FROM As DateTime
Dim RES_AVAIL_TO As DateTime
Dim RES_AVAIL_UNITS As Double
Dim returnValue As ResourceDataSet.ResourceAvailabilitiesRow
returnValue = instance.AddResourceAvailabilitiesRow(parentResourcesRowByResourcesResourceAvailabilities, _
RES_AVAIL_FROM, RES_AVAIL_TO, RES_AVAIL_UNITS)
public ResourceDataSet.ResourceAvailabilitiesRow AddResourceAvailabilitiesRow(
ResourceDataSet.ResourcesRow parentResourcesRowByResourcesResourceAvailabilities,
DateTime RES_AVAIL_FROM,
DateTime RES_AVAIL_TO,
double RES_AVAIL_UNITS
)
Parameters
- parentResourcesRowByResourcesResourceAvailabilities
Type: [Workflow Web service].ResourceDataSet.ResourcesRow
- RES_AVAIL_FROM
Type: System.DateTime
Contains the start date and time for which the RES_AVAIL_UNITS property value applies.
- RES_AVAIL_TO
Type: System.DateTime
Contains the end date and time until which the RES_AVAIL_UNITS property value applies.
- RES_AVAIL_UNITS
Type: System.Double
Contains the available resource units.
Return Value
Type: [Workflow Web service].ResourceDataSet.ResourceAvailabilitiesRow
Remarks
In general, developers should use the AddResourceAvailabilitiesRow overload.
See Also
Reference
ResourceDataSet.ResourceAvailabilitiesDataTable Class
ResourceDataSet.ResourceAvailabilitiesDataTable Members