Add Metadata Method

AddMetadata determines if the metadata attribute is the correct data type, then adds the metadata attribute to the data file. If a metadata attribute with the same name already exists in the data log, this function will overwrite the existing metadata value.

Note The Logging Library does not support the following special characters in metadata names and values: [, ], and ,
using (SetMetadata data = run.LogAppendedMetadata())
{
    data.AddMetadata(Fields.ChipId, "85");
    data.AddMetadata(Fields.PackageType, "Soic-8");
    ...
}
Table 27. .NET Add Metadata Method Parameters
Parameter Required? Data Type Description
fieldName Yes Fields Name of the metadata attribute to add.
metadataValue Yes String Value of the metadata attribute to add.