| MappingIsTraced Property |
Namespace:
RW.Server.Component
Assembly:
RW.Server.Component (in RW.Server.Component.dll) Version: 7.2.0.0 (7.2.0.0)
Syntax public static bool IsTraced { get; }
Public Shared ReadOnly Property IsTraced As Boolean
Get
public:
static property bool IsTraced {
bool get ();
}
Property Value
Type:
Booleantrue 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