| MappingIsTraced Property |
Namespace: RW.Server.ComponentAssembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.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