Share via


OptimizerSolutionDataSet.SolutionConstraintsDataTable.AddSolutionConstraintsRow Method (OptimizerSolutionDataSet.SolutionRow, Guid, String, Int32, Decimal)

Adds a SolutionConstraintsRow object to the SolutionConstraintsDataTable 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 AddSolutionConstraintsRow ( _
    parentSolutionRowByFK_Solution_SolutionConstraints As OptimizerSolutionDataSet.SolutionRow, _
    MD_PROP_UID As Guid, _
    MD_PROP_NAME As String, _
    MD_PROP_POS As Integer, _
    MAX_VALUE As Decimal _
) As OptimizerSolutionDataSet.SolutionConstraintsRow
'Usage
Dim instance As OptimizerSolutionDataSet.SolutionConstraintsDataTable
Dim parentSolutionRowByFK_Solution_SolutionConstraints As OptimizerSolutionDataSet.SolutionRow
Dim MD_PROP_UID As Guid
Dim MD_PROP_NAME As String
Dim MD_PROP_POS As Integer
Dim MAX_VALUE As Decimal
Dim returnValue As OptimizerSolutionDataSet.SolutionConstraintsRow

returnValue = instance.AddSolutionConstraintsRow(parentSolutionRowByFK_Solution_SolutionConstraints, _
    MD_PROP_UID, MD_PROP_NAME, MD_PROP_POS, _
    MAX_VALUE)
public OptimizerSolutionDataSet.SolutionConstraintsRow AddSolutionConstraintsRow(
    OptimizerSolutionDataSet.SolutionRow parentSolutionRowByFK_Solution_SolutionConstraints,
    Guid MD_PROP_UID,
    string MD_PROP_NAME,
    int MD_PROP_POS,
    decimal MAX_VALUE
)

Parameters

  • MD_PROP_UID
    Type: System.Guid
    Contains the custom field GUID.
  • MD_PROP_NAME
    Type: System.String
    Contains the custom field name.
  • MD_PROP_POS
    Type: System.Int32
    Contains the custom field position.
  • MAX_VALUE
    Type: System.Decimal
    Contains the maximum value allowed for the constraint.

Return Value

Type: [PortfolioAnalyses Web service].OptimizerSolutionDataSet.SolutionConstraintsRow

Remarks

In general, developers should use the AddSolutionConstraintsRow overload.

See Also

Reference

OptimizerSolutionDataSet.SolutionConstraintsDataTable Class

OptimizerSolutionDataSet.SolutionConstraintsDataTable Members

AddSolutionConstraintsRow Overload

PortfolioAnalyses Web Service