OptimizerSolutionDataSet.SolutionConstraintsDataTable.AddSolutionConstraintsRow method (OptimizerSolutionDataSet.SolutionRow, Guid, String, Int32, Decimal)
Adds a SolutionConstraintsRow object to the SolutionConstraintsDataTable by using separate parameters.
Namespace: WebSvcPortfolioAnalyses
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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
parentSolutionRowByFK_Solution_SolutionConstraints
Type: WebSvcPortfolioAnalyses.OptimizerSolutionDataSet.SolutionRowContains the row information.
MD_PROP_UID
Type: System.GuidContains the custom field GUID.
MD_PROP_NAME
Type: System.StringContains the custom field name.
MD_PROP_POS
Type: System.Int32Contains the custom field position.
MAX_VALUE
Type: System.DecimalContains the maximum value allowed for the constraint.
Return value
Type: WebSvcPortfolioAnalyses.OptimizerSolutionDataSet.SolutionConstraintsRow
Remarks
In general, developers should use the AddSolutionConstraintsRow overload.
See also
Reference
OptimizerSolutionDataSet.SolutionConstraintsDataTable class
OptimizerSolutionDataSet.SolutionConstraintsDataTable members