ICape Thermo ContextSet Material Method
Allows the client of a component that implements this interface to pass an
ICapeThermoMaterialObject interface to the component, so that
it can access the properties of a material and request property calculations.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[DispIdAttribute(1)]
void SetMaterial(
Object materialObject
)VB
<DispIdAttribute(1)>
Sub SetMaterial (
materialObject As Object
)Parameters
- materialObject Object
- The interface of an object support the ICapeThermoMaterialObject interface.
Remarks
The SetMaterial method allows a Reactions component to be given the
ICapeThermoMaterialObject interface of a Material Object.
This interface gives the component access to the description of the material for
which Property calculations are required. A component can also use the
ICapeThermoMaterialObject interface to to get lists of components
and phases.
Exceptions
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeInvalidArgument | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeFailedInitialisation | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeNoImpl | The error to be raised when other error(s), specified for this operation, are not suitable. |