Decision.ToString Method (String, IFormatProvider)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts the decision to its equivalent string representation.

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

Syntax

'Declaration
Public Overrides Function ToString ( _
    format As String, _
    formatProvider As IFormatProvider _
) As String
public override string ToString(
    string format,
    IFormatProvider formatProvider
)
public:
virtual String^ ToString(
    String^ format, 
    IFormatProvider^ formatProvider
) override
abstract ToString : 
        format:string * 
        formatProvider:IFormatProvider -> string 
override ToString : 
        format:string * 
        formatProvider:IFormatProvider -> string 
public override function ToString(
    format : String, 
    formatProvider : IFormatProvider
) : String

Parameters

  • format
    Type: System.String
    The format to use, or nulla null reference (Nothing in Visual Basic).
  • formatProvider
    Type: System.IFormatProvider
    An object that provides formatting information for formatting and parsing operations. formatProvider can be nulla null reference (Nothing in Visual Basic).

Return Value

Type: System.String
The string representation of the decision.

Implements

IFormattable.ToString(String, IFormatProvider)

Remarks

Use the "n" format to print decision names instead of values.

.NET Framework Security

See Also

Reference

Decision Class

ToString Overload

Microsoft.SolverFoundation.Services Namespace