Click or drag to resize
MappingIsTraced Property
Checks if a TextWriter has been set on Trace property.

Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.0.0)
Syntax
public static bool IsTraced { get; }

Property Value

Type: Boolean
true if a TextWriter has been set on Trace property.
Remarks
When you need to conditionnally add a trace, it is shorter to write:
Mapping.Trace?.WriteLine("Anything");
than
if (Mapping.IsTraced) {
    Mapping.Trace.WriteLine("Anything");
}
See Also