SimplexSolver.AddListener Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a tracing listener for solve attempts..
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Function AddListener ( _
listener As TraceListener, _
ids As LogIdSet _
) As Boolean
public virtual bool AddListener(
TraceListener listener,
LogIdSet ids
)
public:
virtual bool AddListener(
TraceListener^ listener,
LogIdSet ids
)
abstract AddListener :
listener:TraceListener *
ids:LogIdSet -> bool
override AddListener :
listener:TraceListener *
ids:LogIdSet -> bool
public function AddListener(
listener : TraceListener,
ids : LogIdSet
) : boolean
Parameters
- listener
Type: System.Diagnostics.TraceListener
A listener.
- ids
Type: Microsoft.SolverFoundation.Common.LogIdSet
The identifiers for events that are listening.
Return Value
Type: System.Boolean
true if the tracing listener is added; otherwise, false.
Implements
ILogSource.AddListener(TraceListener, LogIdSet)
.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.