ICape Thermo Material ContextUnset Material Method
Removes any previously set Material interface.
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(2)]
void UnsetMaterial()VB
<DispIdAttribute(2)>
Sub UnsetMaterialRemarks
The UnsetMaterial method removes any Material interface previously set by a call to the SetMaterial method of the ICapeThermoMaterialContext interface. This means that any methods of other interfaces that depend on having a valid Material Interface, for example methods of the ICapeThermoPropertyRoutine or ICapeThermoEquilibriumRoutine interfaces, should behave in the same way as if the SetMaterial method had never been called.
If UnsetMaterial is called before a call to SetMaterial it has no effect and no exception should be raised.
Exceptions
| ECapeNoImpl | The operation is “not” implemented even if this method can be called for reasons of compatibility with the CAPE-OPEN standards. That is to say that the operation exists, but it is not supported by the current implementation. |
| ECapeUnknown | The error to be raised when other error(s), specified for the operation, are not suitable. |