IDiagnosticTraceCollection::Add

 
IDiagnosticeTrace *Add(
                       VARIANT val  // VT_BSTR, VT_I2, VT_I4, VT_UI4
);
Return Values
This method returns an IDiagnosticTrace interface pointer from the IDiagnosticTraceCollection .
Remarks
Adds for a DiagnosticTrace object based on the variant type passed in:
  • VT_BSTR - Find the DiagnosticTrace by its name
  • VT_I2, VT_I4, VT_UI4 - Find the DiagnosticTrace by its index or ID
Also See