ResourceDataSet.ResourceAvailabilitiesDataTable.AddResourceAvailabilitiesRow 方法 (ResourceDataSet.ResourcesRow, DateTime, DateTime, Double)
通过使用不同的参数向ResourceAvailabilitiesDataTable的ResourceAvailabilitiesRow对象。
命名空间: WebSvcWorkflow
程序集: ProjectServerServices(位于 ProjectServerServices.dll 中)
语法
声明
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
用法
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
)
参数
- parentResourcesRowByResourcesResourceAvailabilities
类型:WebSvcWorkflow.ResourceDataSet.ResourcesRow
RES_AVAIL_FROM
类型:System.DateTime包含开始日期和时间的RES_AVAIL_UNITS属性值所适用的。
RES_AVAIL_TO
类型:System.DateTime包含的结束日期和时间之前的RES_AVAIL_UNITS属性值应用。
RES_AVAIL_UNITS
类型:System.Double包含可用的资源单位。
返回值
类型:WebSvcWorkflow.ResourceDataSet.ResourceAvailabilitiesRow
备注
一般情况下,开发人员应使用的AddResourceAvailabilitiesRow重载。
另请参阅
引用
ResourceDataSet.ResourceAvailabilitiesDataTable 类
ResourceDataSet.ResourceAvailabilitiesDataTable 成员