[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a probability/value pair.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration Public Structure Scenario
public struct Scenario
public value class Scenario
[<Sealed>] type Scenario = struct end
JScript supports the use of structures, but not the declaration of new ones.
The Scenario type exposes the following members.
|Scenario||Initializes a new instance of the Scenario class. Creates a new instance, using the provided probability and value.|
|Equals||Returns a value that indicates whether a scenario object is equal to another object. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for a scenario object. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|IsValidScenarioValue||Returns a value that indicates whether a value is valid for a scenario.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Converts a scenario to its equivalent string representation. (Overrides ValueType.ToString().)|
|Equality||Returns a value that indicates whether two scenario objects are equal.|
|Inequality||Returns a value that indicates whether two scenario objects are unequal.|
|Probability||Represents the probability of getting a specific value.|
|Value||Represents the value for the scenario.|
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.