public virtual void From_XML(System.Xml.Linq.XElement xml)
 {
     Source_Startup_Policy = Libvirt.Models.Concrete.Disk.Source_Startup_Policies.mandatory;
     if (xml != null)
     {
         var attr = xml.Attribute("startupPolicy");
         if (attr != null)
         {
             var b = Libvirt.Models.Concrete.Disk.Source_Startup_Policies.mandatory;
             Enum.TryParse(attr.Value, true, out b);
             Source_Startup_Policy = b;
         }
     }
 }
Ejemplo n.º 2
0
 public virtual void From_XML(System.Xml.Linq.XElement xml)
 {
     Source_Startup_Policy = Libvirt.Models.Concrete.Disk.Source_Startup_Policies.mandatory;
     if (xml != null)
     {
         var attr = xml.Attribute("startupPolicy");
         if (attr != null)
         {
             var b = Libvirt.Models.Concrete.Disk.Source_Startup_Policies.mandatory;
             Enum.TryParse(attr.Value, true, out b);
             Source_Startup_Policy = b;
         }
     }
 }