SoPreferencesGetLong Method |
Returns the value of the specified environment variable in the Open Inventor environment, interpreted as a long.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public static int GetLong(
string name,
int defaultValue
)
Public Shared Function GetLong (
name As String,
defaultValue As Integer
) As Integer
public:
static int GetLong(
String^ name,
int defaultValue
)
static member GetLong :
name : string *
defaultValue : int -> int
Parameters
- name
- Type: SystemString
- defaultValue
- Type: SystemInt32
Return Value
Type:
Int32Remarks The search process is the same as for OIV.Inventor.SoPreferences.GetValue(System.String).
If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as a long, the specified default value will be returned.
See Also