Scenario Structure

[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.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)


Public Structure Scenario
public struct Scenario
public value class Scenario
type Scenario =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The Scenario type exposes the following members.


  Name Description
Public method Scenario Initializes a new instance of the Scenario class. Creates a new instance, using the provided probability and value.



  Name Description
Public method Equals Returns a value that indicates whether a scenario object is equal to another object. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for a scenario object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsValidScenarioValue Returns a value that indicates whether a value is valid for a scenario.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Converts a scenario to its equivalent string representation. (Overrides ValueType.ToString().)



  Name Description
Public operatorStatic member Equality Returns a value that indicates whether two scenario objects are equal.
Public operatorStatic member Inequality Returns a value that indicates whether two scenario objects are unequal.



  Name Description
Public field Probability Represents the probability of getting a specific value.
Public field Value Represents the value for the scenario.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.SolverFoundation.Services Namespace