Click or drag to resize

GetHazmatContents

This topic describes the ShipExec Server GetHazmatContents Rule

A business rule hook used to set the list of available hazmat contents that are available on the hazmat screen in the shipping client

Sample GetHazmatContents Rule
C#
public List<HazmatContent> GetHazmatContents(List<HazmatContent> definedHazmatContents)
{
    var hazmatItem1 = new HazmatContent()
    {
        HazmatDescription = "Cleaning Chemicals",
        HazmatCaCategory = 8,
        HazmatEmergencyPhone = "123-123-1234"
    };

    return new List<HazmatContent> { hazmatItem1 };

}
See Also