public Deployment(Manifest parent, XmlNode elm, XmlNamespaceManager nsmgr) : this(parent) { if (elm.Attributes["install"] != null) { Install = Convert.ToBoolean(elm.Attributes["install"].Value); } if (elm.Attributes["minimumRequiredVersion"] != null) { MinimumRequiredVersion = new Version(elm.Attributes["minimumRequiredVersion"].Value); } if (elm.Attributes["mapFileExtensions"] != null) { MapFileExtensions = Convert.ToBoolean(elm.Attributes["mapFileExtensions"].Value); } if (elm.Attributes["disallowUrlActivation"] != null) { DisallowUrlActivation = Convert.ToBoolean(elm.Attributes["disallowUrlActivation"].Value); } if (elm.Attributes["trustUrlParameters"] != null) { TrustUrlParameters = Convert.ToBoolean(elm.Attributes["trustUrlParameters"].Value); } // Get the deploymentProvider node, if it exists XmlNode node = elm.SelectSingleNode("asmv2:deploymentProvider", nsmgr); // Create a DeploymentProvider object from the XML if (node != null) { DeploymentProvider = new DeploymentProvider(node, nsmgr); } }
public Deployment(Manifest parent, XmlNode elm, XmlNamespaceManager nsmgr) : this(parent) { if (elm.Attributes["install"] != null) Install = Convert.ToBoolean(elm.Attributes["install"].Value); if (elm.Attributes["minimumRequiredVersion"] != null) MinimumRequiredVersion = new Version(elm.Attributes["minimumRequiredVersion"].Value); if (elm.Attributes["mapFileExtensions"] != null) MapFileExtensions = Convert.ToBoolean(elm.Attributes["mapFileExtensions"].Value); if (elm.Attributes["disallowUrlActivation"] != null) DisallowUrlActivation = Convert.ToBoolean(elm.Attributes["disallowUrlActivation"].Value); if (elm.Attributes["trustUrlParameters"] != null) TrustUrlParameters = Convert.ToBoolean(elm.Attributes["trustUrlParameters"].Value); // Get the deploymentProvider node, if it exists XmlNode node = elm.SelectSingleNode("asmv2:deploymentProvider", nsmgr); // Create a DeploymentProvider object from the XML if (node != null) DeploymentProvider = new DeploymentProvider(node, nsmgr); }