Sage Modeling and Simulation Library

SmartPropertyBag..::..Item Property

Retrieves an entry from this SPB. Compound keys may be specified if appropriate. For example, 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:
C#
string theSKU = (string)myPallet["Crates.123-45.SKU"];

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

Syntax


public virtual Object this[
	string key
] { get; set; }

Parameters

key
Type: String