Share via


PlannerSolutionDataSet.SolutionResHiredDataTable.AddSolutionResHiredRow Method (PlannerSolutionDataSet.SolutionsRow, Guid, Guid, Guid, DateTime, Int32, Decimal, Decimal, Guid, String, String)

Adds a SolutionResHiredRow object to the SolutionResHiredDataTable by using separate parameters.

Namespace:  [PortfolioAnalyses Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/PortfolioAnalyses.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/PortfolioAnalyses.asmx?wsdl

Syntax

'Declaration
Public Function AddSolutionResHiredRow ( _
    parentSolutionsRowByFK_Solutions_SolutionResHired As PlannerSolutionDataSet.SolutionsRow, _
    LT_STRUCT_UID As Guid, _
    CUSTOM_FIELD_UID As Guid, _
    PROJ_UID As Guid, _
    START_DATE As DateTime, _
    DURATION As Integer, _
    RESOURCE_COST As Decimal, _
    RESOURCE_WORK As Decimal, _
    RES_HIRE_UID As Guid, _
    ROLE_NAME As String, _
    PROJ_NAME As String _
) As PlannerSolutionDataSet.SolutionResHiredRow
'Usage
Dim instance As PlannerSolutionDataSet.SolutionResHiredDataTable
Dim parentSolutionsRowByFK_Solutions_SolutionResHired As PlannerSolutionDataSet.SolutionsRow
Dim LT_STRUCT_UID As Guid
Dim CUSTOM_FIELD_UID As Guid
Dim PROJ_UID As Guid
Dim START_DATE As DateTime
Dim DURATION As Integer
Dim RESOURCE_COST As Decimal
Dim RESOURCE_WORK As Decimal
Dim RES_HIRE_UID As Guid
Dim ROLE_NAME As String
Dim PROJ_NAME As String
Dim returnValue As PlannerSolutionDataSet.SolutionResHiredRow

returnValue = instance.AddSolutionResHiredRow(parentSolutionsRowByFK_Solutions_SolutionResHired, _
    LT_STRUCT_UID, CUSTOM_FIELD_UID, _
    PROJ_UID, START_DATE, DURATION, RESOURCE_COST, _
    RESOURCE_WORK, RES_HIRE_UID, ROLE_NAME, _
    PROJ_NAME)
public PlannerSolutionDataSet.SolutionResHiredRow AddSolutionResHiredRow(
    PlannerSolutionDataSet.SolutionsRow parentSolutionsRowByFK_Solutions_SolutionResHired,
    Guid LT_STRUCT_UID,
    Guid CUSTOM_FIELD_UID,
    Guid PROJ_UID,
    DateTime START_DATE,
    int DURATION,
    decimal RESOURCE_COST,
    decimal RESOURCE_WORK,
    Guid RES_HIRE_UID,
    string ROLE_NAME,
    string PROJ_NAME
)

Parameters

  • LT_STRUCT_UID
    Type: System.Guid
    Contains the lookup table GUID.
  • CUSTOM_FIELD_UID
    Type: System.Guid
    Contains the custom field GUID.
  • PROJ_UID
    Type: System.Guid
    Contains the project GUID.
  • DURATION
    Type: System.Int32
    Contains the number of months or quarters (depending on the timescale) for the hiring allocation.
  • RESOURCE_COST
    Type: System.Decimal
    Contains the total cost of resources hired to allocate the project in this solution.
  • RESOURCE_WORK
    Type: System.Decimal
    Contains the total amount of resource work (in terms of 1/100 of a minute) hired to allocate the project in this solution
  • RES_HIRE_UID
    Type: System.Guid
    Contains the GUID of the hired resource.

Return Value

Type: [PortfolioAnalyses Web service].PlannerSolutionDataSet.SolutionResHiredRow

Remarks

In general, developers should use the AddSolutionResHiredRow overload.

See Also

Reference

PlannerSolutionDataSet.SolutionResHiredDataTable Class

PlannerSolutionDataSet.SolutionResHiredDataTable Members

AddSolutionResHiredRow Overload

PortfolioAnalyses Web Service