Show / Hide Table of Contents

Interface IReadOnlyProperty_Boolean

Represents a property of type boolean

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_Boolean : IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode

Methods

| Improve this Doc View Source

AsBoolean()

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

Exceptions
Type Condition
System.InvalidCastException

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

| Improve this Doc View Source

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

Exceptions
Type Condition
System.InvalidCastException

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

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