DiagnosticSource Class

Syntax

Declaration

public abstract class DiagnosticSource

Inheritance Hierarchy

Inherited Members

System.Object

, , , , , ,

Constructors summary

Methods summary

Constructors

  • DiagnosticSource()
    protected DiagnosticSource()

Methods

  • IsEnabled(String)
    public abstract bool IsEnabled(string name)

    Parameters

    • name

      The name of the event being written.

    Returns

  • Write(String, Object)
    public abstract void Write(string name, object value)

    Parameters

    • name

      The name of the event being written.

    • value

      An object that represent the value being passed as a payload for the event. This is often a anonymous type which contains several sub-values.

Details

Namespace

System.Diagnostics

Assembly

System.Diagnostics.DiagnosticSource.dll