Interface IReadOnlyProperty_Number
Represents a property of type integer, decimal, float, etc.
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IReadOnlyProperty_Number : IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode
Methods
| Improve this Doc View SourceAsDouble()
Value converted to a System.Nullable<T>. If the value cannot be converted, an exception is thrown
Declaration
double ? AsDouble()
Returns
Type | Description |
---|---|
System.Nullable<System.Double> | A System.Double or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Double |
AsDouble(Double)
Value converted to a System.Double using the defaultValue
if null.
If the value cannot be converted, an exception is thrown
Declaration
double AsDouble(double defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | defaultValue | The default value to return if the value is empty |
Returns
Type | Description |
---|---|
System.Double | A System.Double or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Double |
AsInt()
Value converted to a System.Nullable<T>. If the value cannot be converted, an exception is thrown
Declaration
int ? AsInt()
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | A System.Int32 or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Int32 |
AsInt(Int32)
Value converted to a System.Int32 using the defaultValue
if null.
If the value cannot be converted, an exception is thrown
Declaration
int AsInt(int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | defaultValue | The default value to return if the value is empty |
Returns
Type | Description |
---|---|
System.Int32 | A System.Int32 or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Int32 |
AsLong()
Value converted to a System.Nullable<T>. If the value cannot be converted, an exception is thrown
Declaration
long ? AsLong()
Returns
Type | Description |
---|---|
System.Nullable<System.Int64> | A System.Int64 or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Int64 |
AsLong(Int64)
Value converted to a System.Int64 using the defaultValue
if null.
If the value cannot be converted, an exception is thrown
Declaration
long AsLong(long defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | defaultValue | The default value to return if the value is empty |
Returns
Type | Description |
---|---|
System.Int64 | A System.Int64 or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Int64 |