System.Data.Common.DbProviderConfigurationHandler.DbProviderDictionarySectionHandler.HandleClear(System.Xml.XmlNode, System.Collections.Specialized.NameValueCollection)

Here are the examples of the csharp api class System.Data.Common.DbProviderConfigurationHandler.DbProviderDictionarySectionHandler.HandleClear(System.Xml.XmlNode, System.Collections.Specialized.NameValueCollection) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
static internal NameValueCollection CreateStatic(NameValueCollection config, Object context, XmlNode section) {
                if (null != section) {
                    HandlerBase.CheckForUnrecognizedAttributes(section);
                    }
                    
                    foreach (XmlNode child in section.ChildNodes) {
                        if (HandlerBase.IsIgnorableAlsoCheckForNonElement(child)) {
                            continue;
                        }
                        switch(child.Name) {
                        case "add":
                            HandleAdd(child, config);
                            break;
                        case "remove":
                            HandleRemove(child, config);
                            break;
                        case "clear":
                            HandleClear(child, config);
                            break;
                        default:
                            throw ADP.ConfigUnrecognizedElement(child);
                        }
                    }
                return config;
                
            }