private
Server server = new Server();
//Connect to
the server
server.Connect(serverName)
After connecting, server.SessionTrace is set to the session trace object corresponding to the
current session.
Step 3:
You can now trace data mining processing and other server
activities by defining an event handler as follows:
server.SessionTrace.OnEvent += new
TraceEventHandler(EventHandlerForTrace);
Step 4:
Have the trace event handler EventHandlerForTrace add trace
messages into a buffer:
//Buffer for trace messasge
private StringBuilder messageBuffer = new StringBuilder();