public WriteBoolean ( string fieldName, bool value ) : void | ||
fieldName | string | |
value | bool | |
리턴 | void |
/// <summary> /// Saves the attributes from the stream. /// </summary> /// <param name="context">The context for the system being accessed.</param> /// <param name="encoder">The encoder wrapping the stream to write.</param> public override void Save(ISystemContext context, XmlEncoder encoder) { base.Save(context, encoder); encoder.PushNamespace(Namespaces.OpcUaXsd); if (m_executable) { encoder.WriteBoolean("Executable", m_executable); } if (m_userExecutable) { encoder.WriteBoolean("UserExecutable", m_executable); } encoder.PopNamespace(); }
/// <summary> /// Saves the attributes from the stream. /// </summary> /// <param name="context">The context for the system being accessed.</param> /// <param name="encoder">The encoder wrapping the stream to write.</param> public override void Save(ISystemContext context, XmlEncoder encoder) { base.Save(context, encoder); encoder.PushNamespace(Namespaces.OpcUaXsd); if (m_eventNotifier != 0) { encoder.WriteByte("EventNotifier", m_eventNotifier); } if (m_containsNoLoops) { encoder.WriteBoolean("ContainsNoLoops", m_containsNoLoops); } encoder.PopNamespace(); }
/// <summary> /// Saves the attributes from the stream. /// </summary> /// <param name="context">The context for the system being accessed.</param> /// <param name="encoder">The encoder wrapping the stream to write.</param> public override void Save(ISystemContext context, XmlEncoder encoder) { base.Save(context, encoder); encoder.PushNamespace(Namespaces.OpcUaXsd); if (!LocalizedText.IsNullOrEmpty(m_inverseName)) { encoder.WriteLocalizedText("InverseName", m_inverseName); } if (m_symmetric) { encoder.WriteBoolean("Symmetric", m_symmetric); } encoder.PopNamespace(); }
/// <summary> /// Saves the attributes from the stream. /// </summary> /// <param name="context">The context for the system being accessed.</param> /// <param name="encoder">The encoder wrapping the stream to write.</param> public override void Save(ISystemContext context, XmlEncoder encoder) { base.Save(context, encoder); encoder.PushNamespace(Namespaces.OpcUaXsd); if (!NodeId.IsNull(m_superTypeId)) { encoder.WriteNodeId("SuperTypeId", m_superTypeId); } if (m_isAbstract) { encoder.WriteBoolean("IsAbstract", m_isAbstract); } encoder.PopNamespace(); }