Sage Modeling and Simulation Library

MaterialService..::..GetCompartment Method (MaterialType, ICollection)

Gets the MaterialResourceItem that is acting as the compartment for the specified material type. Creates one anew if there was not one, and this MaterialService has its AutocreateMaterialCompartments parameter set to true. Will return null if there is no compartment with the given material type.

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

Syntax


public MaterialResourceItem GetCompartment(
	MaterialType mt,
	ICollection materialSpecifications
)

Parameters

mt
Type: Highpoint.Sage.Materials.Chemistry..::..MaterialType
The material type whose compartment we desire.
materialSpecifications
Type: ICollection
A collection of the material specifications that are to be applied to this compartment.

Return Value

The MaterialResourceItem that is acting as the compartment for the specified material type.