Sage Modeling and Simulation Library

SmartPropertyBag..::..AddChildSPB Method

Adds a child SPB to this SPB. A child SPB is one that is owned by this bag, and whose entries can be treated as sub-entries of this bag. For example, a if a bag, representing a pallet, were to contain another SPB under the key of "Crates", and that SPB contained one SPB for each crate (one of which was keyed as "123-45", and that SPB had a string keyed as "SKU" and another keyed as "Batch", then the following code would retrieve the SKU directly:
string theSKU = (string)myPallet["Crates.123-45.SKU"];

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)


public void AddChildSPB(
	string key,
	SmartPropertyBag spb


Type: String
The key by which the child SPB is going to be known.
Type: Highpoint.Sage.SimCore..::..SmartPropertyBag
The child SPB.