PocketPlanner Programmer's Guide

XmlSerializationContext.ReadBool Method (String, XmlElement, Boolean)

See Also

Reads a boolean value with the specified name.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public bool ReadBool (
    string elementName,
    XmlElement parentElement,
    bool defaultValue
)

Visual Basic

Public Function ReadBool ( _
    elementName As String, _
    parentElement As XmlElement, _
    defaultValue As Boolean _
) As Boolean

 Parameters

elementName
The name of the element containing the bool value.
parentElement
The parent element of the node with the specified name.
defaultValue
The value that should be returned if there is no node with the specified name under the specified parent element.

 Return Value

A bool value.

 Remarks

If there is no element with the specified name, returns the specified default value.

 See Also