# C1.Schedule.BasePersistableObject

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_BasePersistableObject" data-uid="C1.Schedule.BasePersistableObject" class="text-break">BasePersistableObject Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.BasePersistableObject.html">BasePersistableObject</a> is a base class for persistable objects.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">BasePersistableObject</span></div>
      <div class="level2"><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></div>
      <div class="level2"><a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Schedule.html">C1.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.ScheduleCore.dll</h6>
  <h5 id="C1_Schedule_BasePersistableObject_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BasePersistableObject : INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BasePersistableObject
    Implements INotifyPropertyChanged</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_BasePersistableObject__ctor" data-uid="C1.Schedule.BasePersistableObject.#ctor">
          <a class="xref" href="C1.Schedule.BasePersistableObject.-ctor.html#C1_Schedule_BasePersistableObject__ctor">BasePersistableObject()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new BasePersistableObject object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="C1.Schedule.BasePersistableObject.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.-ctor.html#C1_Schedule_BasePersistableObject__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">BasePersistableObject(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Special constructor for deserialization.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_Id" data-uid="C1.Schedule.BasePersistableObject.Id">
          <a class="xref" href="C1.Schedule.BasePersistableObject.Id.html#C1_Schedule_BasePersistableObject_Id">Id</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the unique id used for serialization purposes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_IsEdit" data-uid="C1.Schedule.BasePersistableObject.IsEdit">
          <a class="xref" href="C1.Schedule.BasePersistableObject.IsEdit.html#C1_Schedule_BasePersistableObject_IsEdit">IsEdit</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the object is in edit mode,
which is started using the <a class="xref" href="C1.Schedule.BasePersistableObject.BeginEdit.html#C1_Schedule_BasePersistableObject_BeginEdit">BeginEdit()</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_Key" data-uid="C1.Schedule.BasePersistableObject.Key">
          <a class="xref" href="C1.Schedule.BasePersistableObject.Key.html#C1_Schedule_BasePersistableObject_Key">Key</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an array of objects representing the key of the <a class="xref" href="C1.Schedule.BasePersistableObject.html">BasePersistableObject</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_BeginEdit" data-uid="C1.Schedule.BasePersistableObject.BeginEdit">
          <a class="xref" href="C1.Schedule.BasePersistableObject.BeginEdit.html#C1_Schedule_BasePersistableObject_BeginEdit">BeginEdit()</a>
        </td>
        <td class="markdown level1 summary"><p>Brings the object in edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_BeginEditInternal" data-uid="C1.Schedule.BasePersistableObject.BeginEditInternal">
          <a class="xref" href="C1.Schedule.BasePersistableObject.BeginEditInternal.html#C1_Schedule_BasePersistableObject_BeginEditInternal">BeginEditInternal()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_CancelEdit" data-uid="C1.Schedule.BasePersistableObject.CancelEdit">
          <a class="xref" href="C1.Schedule.BasePersistableObject.CancelEdit.html#C1_Schedule_BasePersistableObject_CancelEdit">CancelEdit()</a>
        </td>
        <td class="markdown level1 summary"><p>Discards changes since the last <a class="xref" href="C1.Schedule.BasePersistableObject.BeginEdit.html#C1_Schedule_BasePersistableObject_BeginEdit">BeginEdit()</a> call.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_EndEdit" data-uid="C1.Schedule.BasePersistableObject.EndEdit">
          <a class="xref" href="C1.Schedule.BasePersistableObject.EndEdit.html#C1_Schedule_BasePersistableObject_EndEdit">EndEdit()</a>
        </td>
        <td class="markdown level1 summary"><p>Finishes edit mode started by the <a class="xref" href="C1.Schedule.BasePersistableObject.BeginEdit.html#C1_Schedule_BasePersistableObject_BeginEdit">BeginEdit()</a> method and
updates a corresponding data source item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_EndEdit_System_Boolean_" data-uid="C1.Schedule.BasePersistableObject.EndEdit(System.Boolean)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.EndEdit.html#C1_Schedule_BasePersistableObject_EndEdit_System_Boolean_">EndEdit(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_FromXml_System_IO_Stream_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.IO.Stream)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.FromXml.html#C1_Schedule_BasePersistableObject_FromXml_System_IO_Stream_">FromXml(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads an object from the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlNode_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.Xml.XmlNode)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.FromXml.html#C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlNode_">FromXml(XmlNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads an object from the specified <span class="xref">System.Xml.XmlNode</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlReader_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.Xml.XmlReader)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.FromXml.html#C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlReader_">FromXml(XmlReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads an object from the specified <span class="xref">System.Xml.XmlReader</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="C1.Schedule.BasePersistableObject.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.GetObjectData.html#C1_Schedule_BasePersistableObject_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>A method called when serializing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_OnPropertyChanged_System_String_" data-uid="C1.Schedule.BasePersistableObject.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.OnPropertyChanged.html#C1_Schedule_BasePersistableObject_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Fires property change notification.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_ToXml_System_IO_Stream_" data-uid="C1.Schedule.BasePersistableObject.ToXml(System.IO.Stream)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.ToXml.html#C1_Schedule_BasePersistableObject_ToXml_System_IO_Stream_">ToXml(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves an object to the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BasePersistableObject_ToXml_System_Xml_XmlWriter_" data-uid="C1.Schedule.BasePersistableObject.ToXml(System.Xml.XmlWriter)">
          <a class="xref" href="C1.Schedule.BasePersistableObject.ToXml.html#C1_Schedule_BasePersistableObject_ToXml_System_Xml_XmlWriter_">ToXml(XmlWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves an object to the specified <span class="xref">System.Xml.XmlWriter</span>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
