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 = ""
)
Public Sub Write (
pData As Object,
pFieldLabelText As String,
Optional pFieldValue As String = ""
)
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 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
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