Interface IReadOnlyProperty_Boolean
Represents a property of type boolean
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IReadOnlyProperty_Boolean : IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode
Methods
| Improve this Doc View SourceAsBoolean()
Value converted to a System.Nullable<T>. If the value cannot be converted, an exception is thrown
Declaration
bool ? AsBoolean()
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> | A System.Boolean or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Boolean |
AsBoolean(Boolean)
Value converted to a System.Boolean using the defaultValue
if null.
If the value cannot be converted, an exception is thrown
Declaration
bool AsBoolean(bool defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | defaultValue | The default value to return if the value is empty |
Returns
Type | Description |
---|---|
System.Boolean | A System.Boolean or |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | If the non-empty value cannot be converted to a System.Boolean |