Click or drag to resize

LogWrite Method (Object, String, String)

Writes two fields from a data object (a label field and a value field)

Namespace:  SIC.Test.Helper
Assembly:  SIC.Test.Helper (in SIC.Test.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public void Write(
	Object pData,
	string pFieldLabelText,
	string pFieldValue = ""
)

Parameters

pData
Type: SystemObject
Data object to reads
pFieldLabelText
Type: SystemString
Label field or text field of value
pFieldValue (Optional)
Type: SystemString
Optional. Value field
Remarks
Calls method Write(String) (at one parameter) or Write(String, String) (at two parameters)
Examples
A data item writes once only value and another with label and value
TestDataClass lTestDataClass = new TestDataClass("Surname", "Franz");

this.Log.Write(lTestDataClass, "Value");
this.Log.Write(lTestDataClass, "Label", "Value");
Result
Franz
Surname:      Franz
Test Data Class
private class TestDataClass
{
    public TestDataClass() { }
    public TestDataClass(string pLabel, string pValue) { this.Label = pLabel; this.Value = pValue; }
    public string Label { get; set; }
    public string Value { get; set; }
}
See Also