Class QueryTraceOptions
public sealed record QueryTraceOptions : IOptionSet, IConfigurationID, IEquatable<QueryTraceOptions>
- Inheritance
-
QueryTraceOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryTraceOptions()
public QueryTraceOptions()
QueryTraceOptions(TraceLevel?, Action<TraceInfo>?, Action<string?, string?, TraceLevel>?)
public QueryTraceOptions(TraceLevel? TraceLevel = null, Action<TraceInfo>? OnTrace = null, Action<string?, string?, TraceLevel>? WriteTrace = null)
Parameters
TraceLevelTraceLevel?Gets custom trace level to use with DataConnection instance.
OnTraceAction<TraceInfo>Gets custom trace method to use with DataConnection instance.
WriteTraceAction<string, string, TraceLevel>Gets custom trace writer to use with DataConnection instance.
Fields
Empty
public static readonly QueryTraceOptions Empty
Field Value
Properties
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.
public TraceLevel? TraceLevel { 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
Deconstruct(out TraceLevel?, out Action<TraceInfo>?, out Action<string?, string?, TraceLevel>?)
public void Deconstruct(out TraceLevel? TraceLevel, out Action<TraceInfo>? OnTrace, out Action<string?, string?, TraceLevel>? WriteTrace)
Parameters
TraceLevelTraceLevel?OnTraceAction<TraceInfo>WriteTraceAction<string, string, TraceLevel>
Equals(QueryTraceOptions?)
public bool Equals(QueryTraceOptions? other)
Parameters
otherQueryTraceOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
<Clone>$()
public QueryTraceOptions <Clone>$()
Returns
Operators
operator ==(QueryTraceOptions?, QueryTraceOptions?)
public static bool operator ==(QueryTraceOptions? left, QueryTraceOptions? right)
Parameters
leftQueryTraceOptionsrightQueryTraceOptions
Returns
operator !=(QueryTraceOptions?, QueryTraceOptions?)
public static bool operator !=(QueryTraceOptions? left, QueryTraceOptions? right)
Parameters
leftQueryTraceOptionsrightQueryTraceOptions