ITraceLog.WriteTrace(String, TraceLevel) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a message to the trace log.
public:
void WriteTrace(System::String ^ message, System::Diagnostics::TraceLevel level);
public void WriteTrace (string message, System.Diagnostics.TraceLevel level);
abstract member WriteTrace : string * System.Diagnostics.TraceLevel -> unit
Public Sub WriteTrace (message As String, level As TraceLevel)
Parameters
- message
- String
The trace message.
- level
- TraceLevel
The trace level.
Examples
See the example in ITraceableComponent.