Exemplo n.º 1
0
            static private void HandleRemove(XmlNode child, NameValueCollection config)
            {
                HandlerBase.CheckForChildNodes(child);
                String name = RemoveAttribute(child, "name");

                HandlerBase.CheckForUnrecognizedAttributes(child);
                config.Remove(name);
            }
Exemplo n.º 2
0
            static private void HandleAdd(XmlNode child, NameValueCollection config)
            {
                // should add vaildate that setting is a known supported setting
                // (i.e. that the value of the name attribute is is good)
                HandlerBase.CheckForChildNodes(child);
                string name  = RemoveAttribute(child, "name");
                string value = RemoveAttribute(child, "value");

                HandlerBase.CheckForUnrecognizedAttributes(child);
                config.Add(name, value);
            }
Exemplo n.º 3
0
            static private void HandleRemove(XmlNode child, DataTable config)
            {
                HandlerBase.CheckForChildNodes(child);
                String invr = HandlerBase.RemoveAttribute(child, "invariant", true, false);

                HandlerBase.CheckForUnrecognizedAttributes(child);
                DataRow row = config.Rows.Find(invr);

                if (null != row)   // ignore invariants that don't exist
                {
                    row.Delete();
                }
            }
Exemplo n.º 4
0
            static private void HandleAdd(XmlNode child, DataTable config)
            {
                HandlerBase.CheckForChildNodes(child);
                DataRow values = config.NewRow();

                values[0] = HandlerBase.RemoveAttribute(child, "name", true, false);
                values[1] = HandlerBase.RemoveAttribute(child, "description", true, false);
                values[2] = HandlerBase.RemoveAttribute(child, "invariant", true, false);
                values[3] = HandlerBase.RemoveAttribute(child, "type", true, false);

                // because beta shipped recognizing "support=hex#", need to give
                // more time for other providers to remove it from the .config files
                HandlerBase.RemoveAttribute(child, "support", false, false);

                HandlerBase.CheckForUnrecognizedAttributes(child);
                config.Rows.Add(values);
            }
Exemplo n.º 5
0
 static private void HandleClear(XmlNode child, DataTable config)
 {
     HandlerBase.CheckForChildNodes(child);
     HandlerBase.CheckForUnrecognizedAttributes(child);
     config.Clear();
 }
Exemplo n.º 6
0
 static private void HandleClear(XmlNode child, NameValueCollection config)
 {
     HandlerBase.CheckForChildNodes(child);
     HandlerBase.CheckForUnrecognizedAttributes(child);
     config.Clear();
 }