ILogSource.AddListener Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns a value that indicates whether a listener is added to the list of listeners.
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Function AddListener ( _
listener As TraceListener, _
ids As LogIdSet _
) As Boolean
bool AddListener(
TraceListener listener,
LogIdSet ids
)
bool AddListener(
TraceListener^ listener,
LogIdSet ids
)
abstract AddListener :
listener:TraceListener *
ids:LogIdSet -> bool
function AddListener(
listener : TraceListener,
ids : LogIdSet
) : boolean
Parameters
- listener
Type: System.Diagnostics.TraceListener
The listener that monitors trace and debug output.
- ids
Type: Microsoft.SolverFoundation.Common.LogIdSet
A set of logging IDs.
Return Value
Type: System.Boolean
true if a listener is added to the list of listeners; otherwise, false.
.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.