ResourceDataSet.ResourceRatesDataTable.AddResourceRatesRow Method (ResourceDataSet.ResourcesRow, Int32, DateTime, Double, Double, Double)
Adds a ResourceRatesRow object to the ResourceRatesDataTable by using separate parameters.
Namespace: [Resource Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Resource.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Resource.asmx?wsdl
Syntax
'Declaration
Public Function AddResourceRatesRow ( _
parentResourcesRowByResourcesResourceRates As ResourceDataSet.ResourcesRow, _
RES_RATE_TABLE As Integer, _
RES_RATE_EFFECTIVE_DATE As DateTime, _
RES_STD_RATE As Double, _
RES_OVT_RATE As Double, _
RES_COST_PER_USE As Double _
) As ResourceDataSet.ResourceRatesRow
'Usage
Dim instance As ResourceDataSet.ResourceRatesDataTable
Dim parentResourcesRowByResourcesResourceRates As ResourceDataSet.ResourcesRow
Dim RES_RATE_TABLE As Integer
Dim RES_RATE_EFFECTIVE_DATE As DateTime
Dim RES_STD_RATE As Double
Dim RES_OVT_RATE As Double
Dim RES_COST_PER_USE As Double
Dim returnValue As ResourceDataSet.ResourceRatesRow
returnValue = instance.AddResourceRatesRow(parentResourcesRowByResourcesResourceRates, _
RES_RATE_TABLE, RES_RATE_EFFECTIVE_DATE, _
RES_STD_RATE, RES_OVT_RATE, RES_COST_PER_USE)
public ResourceDataSet.ResourceRatesRow AddResourceRatesRow(
ResourceDataSet.ResourcesRow parentResourcesRowByResourcesResourceRates,
int RES_RATE_TABLE,
DateTime RES_RATE_EFFECTIVE_DATE,
double RES_STD_RATE,
double RES_OVT_RATE,
double RES_COST_PER_USE
)
Parameters
- parentResourcesRowByResourcesResourceRates
Type: [Resource Web service].ResourceDataSet.ResourcesRow
- RES_RATE_TABLE
Type: System.Int32
Contains the resource rate table.
- RES_RATE_EFFECTIVE_DATE
Type: System.DateTime
Contains the date and time this resource rate becomes effective.
- RES_STD_RATE
Type: System.Double
Contains the resource's hourly rate of pay for regular, non-overtime work
- RES_OVT_RATE
Type: System.Double
Contains the resource's hourly rate of pay for overtime.
- RES_COST_PER_USE
Type: System.Double
Contains the one-time cost incurred when a resource is used.
Return Value
Type: [Resource Web service].ResourceDataSet.ResourceRatesRow
Remarks
In general, customers should use the AddResourceRatesRow overload.
See Also
Reference
ResourceDataSet.ResourceRatesDataTable Class