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
- OleDbEnumerator.cs
- AssemblyName.cs
- GenericWebPart.cs
- LassoSelectionBehavior.cs
- ExtenderHelpers.cs
- SlotInfo.cs
- Font.cs
- NamedPipeProcessProtocolHandler.cs
- DocumentOrderQuery.cs
- SortQuery.cs
- FacetValueContainer.cs
- ContextMenuService.cs
- Helpers.cs
- StorageRoot.cs
- MailMessageEventArgs.cs
- BaseTreeIterator.cs
- propertytag.cs
- UiaCoreProviderApi.cs
- CompositeControl.cs
- XmlQueryCardinality.cs
- InlineCollection.cs
- ListSortDescriptionCollection.cs
- PartitionedStreamMerger.cs
- DataGridLengthConverter.cs
- TreeBuilder.cs
- RichTextBoxConstants.cs
- GestureRecognitionResult.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlSchemaProviderAttribute.cs
- ReadContentAsBinaryHelper.cs
- ToolStripMenuItem.cs
- ListCollectionView.cs
- RotateTransform.cs
- ContentPlaceHolder.cs
- XmlHelper.cs
- RequestQueue.cs
- HttpListenerRequestTraceRecord.cs
- HtmlTableCell.cs
- MaskInputRejectedEventArgs.cs
- Schema.cs
- VirtualPathProvider.cs
- HttpStreamFormatter.cs
- XmlSerializableServices.cs
- ECDsa.cs
- InputLanguageProfileNotifySink.cs
- DataRecordObjectView.cs
- ProviderCommandInfoUtils.cs
- SynchronizationValidator.cs
- EncoderParameters.cs
- MdiWindowListStrip.cs
- _UriTypeConverter.cs
- CngProvider.cs
- RecordBuilder.cs
- ScriptResourceInfo.cs
- LocalServiceSecuritySettings.cs
- TextParaLineResult.cs
- Preprocessor.cs
- AbsoluteQuery.cs
- HtmlLiteralTextAdapter.cs
- ExceptionUtil.cs
- Preprocessor.cs
- DocumentXPathNavigator.cs
- HttpServerChannel.cs
- MappingItemCollection.cs
- StrongNameSignatureInformation.cs
- XmlArrayAttribute.cs
- StateWorkerRequest.cs
- OutputBuffer.cs
- JavaScriptString.cs
- TableRowCollection.cs
- CompilerGlobalScopeAttribute.cs
- CompiledQuery.cs
- OperationContractAttribute.cs
- EncoderExceptionFallback.cs
- AppliedDeviceFiltersDialog.cs
- CaretElement.cs
- AsymmetricKeyExchangeDeformatter.cs
- WebPartHelpVerb.cs
- DrawingContextWalker.cs
- DefaultBinder.cs
- MenuRenderer.cs
- UIElementParagraph.cs
- IsolatedStorageFileStream.cs
- GridView.cs
- AsyncPostBackTrigger.cs
- KeyInterop.cs
- RawMouseInputReport.cs
- ResolveCriteria.cs
- XmlSchemaInferenceException.cs
- TemplateControlParser.cs
- MemoryFailPoint.cs
- ScopeElement.cs
- ConfigurationElementProperty.cs
- SkewTransform.cs
- QueryContinueDragEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- SortKey.cs
- XPathDocumentNavigator.cs
- WorkItem.cs
- SplayTreeNode.cs