Search
XmlSerializationContext.ReadBool Method (String, XElement, Boolean)
See Also
 






Reads a boolean value with the specified name.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

Public Function ReadBool( _
    elementName As String, _
    parentElement As XElement, _
    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