Show / Hide Table of Contents

Interface IReadOnlyProperty_Number

Represents a property of type integer, decimal, float, etc.

Inherited Members
IReadOnlyElement.Attribute(String)
IReadOnlyElement.Attributes()
IReadOnlyElement.Elements()
IReadOnlyElement.AmlContext
IReadOnlyElement.Exists
IReadOnlyElement.Name
IReadOnlyElement.Parent
IReadOnlyElement.Value
IAmlNode.ToAml(XmlWriter, AmlWriterSettings)
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IReadOnlyProperty_Number : IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode

Methods

| Improve this Doc View Source

AsDouble()

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 null if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Double

| Improve this Doc View Source

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 defaultValue if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Double

| Improve this Doc View Source

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 null if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Int32

| Improve this Doc View Source

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 defaultValue if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Int32

| Improve this Doc View Source

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 null if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Int64

| Improve this Doc View Source

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 defaultValue if the value is empty

Exceptions
Type Condition
System.InvalidCastException

If the non-empty value cannot be converted to a System.Int64

Extension Methods

Core.Condition(IReadOnlyProperty_Base)
Core.IsNull(IReadOnlyProperty_Base)
Core.KeyedName(IReadOnlyProperty_Base)
Core.Type(IReadOnlyProperty_Base)
ItemExtensions.AsClrValue(IReadOnlyProperty_Base, Property)
ItemExtensions.ToAml(IAmlNode, AmlWriterSettings)
ItemExtensions.ToAml(IAmlNode, XmlWriter)
ItemExtensions.Element(IReadOnlyElement, String)
ItemExtensions.HasValue(IReadOnlyProperty_Base)
ItemExtensions.ToXml(IAmlNode)
ItemExtensions.CreateReader(IReadOnlyElement)
ItemExtensions.Parents(IReadOnlyElement)
ItemExtensions.ParentsAndSelf(IReadOnlyElement)
ItemExtensions.InnerText(IReadOnlyElement)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX