Scenario Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the Scenario class. Creates a new instance, using the provided probability and value.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub New ( _
probability As Rational, _
value As Rational _
)
public Scenario(
Rational probability,
Rational value
)
public:
Scenario(
Rational probability,
Rational value
)
new :
probability:Rational *
value:Rational -> Scenario
public function Scenario(
probability : Rational,
value : Rational
)
Parameters
- probability
Type: Microsoft.SolverFoundation.Common.Rational
The probability.
- value
Type: Microsoft.SolverFoundation.Common.Rational
The value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.