Microsoft.Web.Administration.ConfigurationCollectionSchema.ConfigurationCollectionSchema C# (CSharp) Method

ConfigurationCollectionSchema() private method

private ConfigurationCollectionSchema ( string path, string addElementNames, string removeElementName, string clearElementName, bool isMergeAppend, bool allowDuplicates, bool allowUnrecognizedAttributes ) : System.Collections.Generic
path string
addElementNames string
removeElementName string
clearElementName string
isMergeAppend bool
allowDuplicates bool
allowUnrecognizedAttributes bool
return System.Collections.Generic
        internal ConfigurationCollectionSchema(string path, string addElementNames, string removeElementName, string clearElementName, bool isMergeAppend, bool allowDuplicates, bool allowUnrecognizedAttributes)
        {
            IsMergeAppend = isMergeAppend;
            AllowDuplicates = allowDuplicates;
            AddElementNames = addElementNames;
            AddSchemas = new List<ConfigurationElementSchema>(_addNames.Length);
            foreach (var name in _addNames)
            {
                AddSchemas.Add(new ConfigurationElementSchema { Path = path + '/' + name, AllowUnrecognizedAttributes = allowUnrecognizedAttributes, Name = name });
            }

            RemoveElementName = removeElementName;
            RemoveSchema = RemoveElementName == null
                               ? null
                               : new ConfigurationElementSchema
                               {
                                   Path = path + '/' + RemoveElementName,
                                   AllowUnrecognizedAttributes =
                                             allowUnrecognizedAttributes,
                                   Name = RemoveElementName
                               };
            ClearElementName = clearElementName;
            ClearSchema = ClearElementName == null
                              ? null
                              : new ConfigurationElementSchema
                              {
                                  Path = path + '/' + ClearElementName,
                                  AllowUnrecognizedAttributes =
                                            allowUnrecognizedAttributes,
                                  Name = ClearElementName
                              };
            Path = path;
        }