XmlElementConverter.GetXsdBooleanAttribute Method
Definition
Namespace: ASNA.DataGate.Common
Assembly: ASNA.QSys.DataGate.Client.dll
Gets the value of the attribute with the specified name from the current XmlElement and converts it to a boolean.
bool GetXsdBooleanAttribute(string name, bool defaultValue)
Gets the value of the attribute with the specified name from the current XmlElement and converts it to a boolean. If the attribute does not exist, returns the specified default value.
bool GetXsdBooleanAttribute(string name, bool defaultValue)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| String | name | The name of the attribute. |
| Boolean | defaultValue | The value to return if the attribute does not exist. |
Returns
| Type | Description |
|---|---|
| Boolean | The boolean value of the attribute, or the default value if the attribute does not exist. |