Class QueryTraceOptions
public sealed record QueryTraceOptions : IOptionSet, IConfigurationID, IEquatable<QueryTraceOptions>
- Inheritance
-
objectQueryTraceOptions
- Implements
- Extension Methods
Constructors
QueryTraceOptions()
public QueryTraceOptions()
QueryTraceOptions(TraceLevel?, Action<TraceInfo>?, Action<string, string, TraceLevel>?, TraceSwitch?)
public QueryTraceOptions(TraceLevel? TraceLevel = null, Action<TraceInfo>? OnTrace = null, Action<string, string, TraceLevel>? WriteTrace = null, TraceSwitch? TraceSwitch = null)
Parameters
TraceLevelTraceLevel?Gets custom trace level to use with DataConnection instance. Value is ignored when
TraceSwitchspecified.OnTraceAction<TraceInfo>Gets custom trace method to use with DataConnection instance.
WriteTraceAction<string, string, TraceLevel>Gets custom trace writer to use with DataConnection instance.
TraceSwitchTraceSwitchGets custom trace switcher to use with DataConnection instance.
Properties
Default
Gets default QueryTraceOptions instance.
public static QueryTraceOptions Default { get; set; }
Property Value
OnTrace
Gets custom trace method to use with DataConnection instance.
public Action<TraceInfo>? OnTrace { get; init; }
Property Value
TraceLevel
Gets custom trace level to use with DataConnection instance. Value is ignored when TraceSwitch specified.
public TraceLevel? TraceLevel { get; init; }
Property Value
TraceSwitch
Gets custom trace switcher to use with DataConnection instance.
public TraceSwitch? TraceSwitch { get; init; }
Property Value
WriteTrace
Gets custom trace writer to use with DataConnection instance.
public Action<string, string, TraceLevel>? WriteTrace { get; init; }
Property Value
Methods
Equals(QueryTraceOptions?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(QueryTraceOptions? other)
Parameters
otherQueryTraceOptionsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.