Sets the tracing categories.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic void Trace(
TraceConstants categories
)
Public Sub Trace (
categories As TraceConstants
)
public:
virtual void Trace(
TraceConstants categories
) sealed
Parameters
- categories TraceConstants
-
Trace these kinds of activities.
Implements
IBasicNoUITrace(TraceConstants)
Remarks
Whenever a WinWrap Basic method, property or event is called or
WinWrap Basic code is executed the
DebugTrace event is fired.
Use this method to help debug the interaction between your application and
WinWrap Basic.
It may be a good idea to give your user the option of tracing to a file.
That will enable you to get useful information when things go wrong.
Example
Turn on tracing, do something and then turn off tracing:
basicIdeCtl1.Trace(TraceConstants.All);
' do something
basicIdeCtl1.Trace(TraceConstants.None);
BasicIdeCtl1.Trace(TraceConstants.All) ' turn on all tracing
' do something
BasicIdeCtl1.Trace(TraceConstants.None) ' turn off all tracing
basicIdeCtl1->Trace(TraceConstants.All);
' do something
basicIdeCtl1->Trace(TraceConstants.None);
See Also