SoPreferencesGetInt Method |
Returns the value of the specified environment variable in the Open Inventor environment, interpreted as an int.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic static int GetInt(
string name,
int defaultValue
)
Public Shared Function GetInt (
name As String,
defaultValue As Integer
) As Integer
public:
static int GetInt(
String^ name,
int defaultValue
)
static member GetInt :
name : string *
defaultValue : int -> int
Parameters
- name
- Type: SystemString
- defaultValue
- Type: SystemInt32
Return Value
Type:
Int32
RemarksThe search process is the same as for getValue.
If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as an int, the specified default value will be returned.
See Also