Initializing help system before first use

# XPRMUnion Class

A union in Mosel
Inheritance Hierarchy
SystemObject
MoselXPRMObjectBase
MoselXPRMTypedObject
MoselXPRMValue
MoselXPRMUnion
Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 6.10.2+3ade428d42075e2d7a96af804c98ecad5f69fa07
Syntax
C#

    public class XPRMUnion : XPRMValue

The XPRMUnion type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| CompTypes | The compatible value types that could be stored within this union. Type code '0' in the returned array will represent the 'any' type
| IsInitialised | Check whether the union has been initialised. Objects are initialised during model execution. Trying to access a Mosel object that has not been created will result on an exception. (Overrides XPRMValueIsInitialised)
| Model | Used to fetch the XPRM model to which this object belongs, or else 'null' if there is no model anywhere among this Object's ancestors. (Inherited from XPRMObjectBase)
| Owner | Used to fetch the XPRM object to which this object belongs (Inherited from XPRMObjectBase)
| StructCode | (Overrides XPRMTypedObjectStructCode)
| StructName | (Overrides XPRMTypedObjectStructName)
| Type | (Inherited from XPRMTypedObject)
| TypeCode | (Overrides XPRMTypedObjectTypeCode)
| TypeName | (Inherited from XPRMTypedObject)
| Value | The value contained within the union; null if undefined or uninitialized

Top
Methods

| Name | Description
--- | --- | ---
| AsArray | An array type value. This function is defined if the actual object is of a array type. (Inherited from XPRMValue)
| AsBoolean | A Boolean. This function is defined if the actual object is a Boolean (Inherited from XPRMValue)
| AsExternal | An external type value. This function is defined if the actual object is of an external type. (Inherited from XPRMValue)
| AsInteger | An integer. This function is defined if the actual object is an integer. (Inherited from XPRMValue)
| AsLinCtr | A linear constraint. This function is defined if the actual object is a linear constraint. (Inherited from XPRMValue)
| AsList | A list type value. This function is defined if the actual object is of a list type. (Inherited from XPRMValue)
| AsMPVar | A decision variable. This function is defined if the actual object is a decision variable. (Inherited from XPRMValue)
| AsProblem | A problem. This function is defined if the actual object is a problem. (Inherited from XPRMValue)
| AsProcedure | A procedure type value. This function is defined if the actual object is of a procedure type. (Inherited from XPRMValue)
| AsReal | A real. This function is defined if the actual object is a real. (Inherited from XPRMValue)
| AsRecord | A record type value. This function is defined if the actual object is of a record type. (Inherited from XPRMValue)
| AsSet | A set type value. This function is defined if the actual object is of a set type. (Inherited from XPRMValue)
| AsString | A string. This function is defined if the actual object is a string. (Inherited from XPRMValue)
| AsUnion | A union type value. This function is defined if the actual object is of a union type. (Overrides XPRMValueAsUnion)
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| ToString | Generate a string representation of the value of the union (Overrides XPRMTypedObjectToString)

Top
See Also

#### Reference

Mosel Namespace
Covered Topics

- XPRMUnion Properties
- XPRMUnion Methods

Parent Topic Mosel

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.