Click or drag to resize
weroSoft AG, Software
TraceExtensionsCreateTraceDataEntry Method (Object, SourceLevels, TraceableKind, String, String, Int32)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Creates a trace entry for a data element.

Namespace:  WeroSoft.Diagnostics
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0
public static string CreateTraceDataEntry(
	this Object data,
	SourceLevels level,
	TraceableKind traceKind,
	string dataFormat,
	string name,
	int indentation


Type: SystemObject
The data to be traced.
Type: System.DiagnosticsSourceLevels
The currently used trace level.
Type: WeroSoft.DiagnosticsTraceableKind
The trace detail definition.
Type: SystemString
The data format of the value. Use the formatting definition only (e.g. N2 or G).
Type: SystemString
The name of the data item. If no name is defined (null), the name is completely omitted.
Type: SystemInt32
Defines the indentation of the entry.

Return Value

Type: String
The created string for the given data item.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also