Generate a collection of all possible charges for existing ship methods.

Namespace:  Asi.iBO.Commerce
Assembly:  Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0

Syntax

C#
public Dictionary<string, CFreightInfo> GetShippingCostsForAllShippingMethods()
Visual Basic (Declaration)
Public Function GetShippingCostsForAllShippingMethods As Dictionary(Of String, CFreightInfo)
Visual C++
public:
Dictionary<String^, CFreightInfo^>^ GetShippingCostsForAllShippingMethods()

Return Value

A Dictionary<(Of <(TKey, TValue>)>) consisting of
  • Key: A String identifying the name of the shipping method.
  • Value: A CFreightInfo object with information relating to the shipping charge for the associated shipping method.

If there was an error in determining a particular shipping charge, then the CFreightInfo item will have the error message.

Remarks

This method includes in a returned CFreightInfo object any error message that results from a problem in processing a given shipping method. Contrast this with GetShippingCosts()()(), which will generate a CError object, which may cause an exception to be thrown. AutoCalculateFreightFlag may be turned off if an error is encountered during calculation.

See Also