Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / SingleTagSectionHandler.cs / 1305376 / SingleTagSectionHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Xml; /** * Single-tag dictionary config factory * * Use for tags of the form:*/ /// /// public class SingleTagSectionHandler : IConfigurationSectionHandler { /** * Create * * Given a partially composed config object (possibly null) * and some input from the config system, return a * further partially composed config object */ ////// public virtual object Create(Object parent, Object context, XmlNode section) { Hashtable result; // start result off as a shallow clone of the parent if (parent == null) result = new Hashtable(); else result = new Hashtable((IDictionary)parent); // verify that there are no children HandlerBase.CheckForChildNodes(section); // iterate through each XML section in order and apply the directives foreach (XmlAttribute attribute in section.Attributes) { // handle name-value pairs result[attribute.Name] = attribute.Value; } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MobileListItem.cs
- RelationshipConstraintValidator.cs
- Rules.cs
- WindowsScrollBar.cs
- CommandDesigner.cs
- NonParentingControl.cs
- TransformerInfoCollection.cs
- SmiMetaDataProperty.cs
- HtmlMeta.cs
- ListenerBinder.cs
- UnicodeEncoding.cs
- PeerApplication.cs
- CornerRadius.cs
- FixedLineResult.cs
- XmlStreamNodeWriter.cs
- HttpPostLocalhostServerProtocol.cs
- StatusBar.cs
- StrokeFIndices.cs
- ActiveXContainer.cs
- COMException.cs
- DrawToolTipEventArgs.cs
- GroupLabel.cs
- BamlTreeUpdater.cs
- SkinBuilder.cs
- ObjectStateManager.cs
- XmlLangPropertyAttribute.cs
- _ContextAwareResult.cs
- PrtCap_Builder.cs
- IconEditor.cs
- TextServicesDisplayAttribute.cs
- SeverityFilter.cs
- X509Chain.cs
- PingReply.cs
- PageFunction.cs
- CurrencyManager.cs
- AssertSection.cs
- ServerValidateEventArgs.cs
- OutputCacheSettings.cs
- Rotation3D.cs
- DLinqDataModelProvider.cs
- MimeMapping.cs
- CodeDelegateInvokeExpression.cs
- PackageDocument.cs
- Label.cs
- IsolatedStorageFilePermission.cs
- HttpWriter.cs
- XamlPointCollectionSerializer.cs
- ParserContext.cs
- EmptyEnumerable.cs
- FormatVersion.cs
- RegexCompiler.cs
- MeshGeometry3D.cs
- IisTraceWebEventProvider.cs
- GlobalId.cs
- SerializerProvider.cs
- EntityViewContainer.cs
- RC2.cs
- IPGlobalProperties.cs
- WebPartManagerInternals.cs
- ReaderWriterLock.cs
- TypeSystemHelpers.cs
- FlowPosition.cs
- FigureHelper.cs
- InputScopeAttribute.cs
- ToolboxItemCollection.cs
- XmlSchemaAnnotated.cs
- NamespaceInfo.cs
- SerializationException.cs
- CryptoStream.cs
- OpCellTreeNode.cs
- DesignSurface.cs
- ProxyWebPartConnectionCollection.cs
- TreeWalkHelper.cs
- SiteOfOriginContainer.cs
- XsltContext.cs
- XmlAnyElementAttribute.cs
- ResourceExpression.cs
- ApplicationSecurityManager.cs
- DrawListViewSubItemEventArgs.cs
- ProjectionCamera.cs
- WSSecurityJan2004.cs
- X500Name.cs
- DataViewSetting.cs
- BinarySerializer.cs
- SystemPens.cs
- MSG.cs
- ObjectQueryProvider.cs
- DesignerActionGlyph.cs
- CalendarTable.cs
- SelectionList.cs
- BulletChrome.cs
- CollectionViewGroupRoot.cs
- NativeMethods.cs
- FileDetails.cs
- NegatedConstant.cs
- WebPartRestoreVerb.cs
- EndpointDesigner.cs
- ConfigurationSectionGroupCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- SocketException.cs