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
- ActivityDesignerHelper.cs
- Win32KeyboardDevice.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DataGridViewRowStateChangedEventArgs.cs
- ProviderSettings.cs
- MouseActionValueSerializer.cs
- ButtonChrome.cs
- DataGridViewTextBoxColumn.cs
- NonVisualControlAttribute.cs
- NamedObject.cs
- Repeater.cs
- TraceSection.cs
- DefaultTraceListener.cs
- DataChangedEventManager.cs
- Utils.cs
- InitializationEventAttribute.cs
- QueryAccessibilityHelpEvent.cs
- WinFormsUtils.cs
- ComponentConverter.cs
- DashStyle.cs
- QualificationDataItem.cs
- InternalEnumValidator.cs
- SparseMemoryStream.cs
- AmbiguousMatchException.cs
- XPathNavigatorReader.cs
- AudioStateChangedEventArgs.cs
- InstancePersistenceCommand.cs
- TargetControlTypeAttribute.cs
- SendReply.cs
- DataObjectPastingEventArgs.cs
- Animatable.cs
- ConfigXmlElement.cs
- CFStream.cs
- ProtectedConfigurationProviderCollection.cs
- Int64Storage.cs
- ServiceOperationInfoTypeConverter.cs
- PasswordPropertyTextAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- RoutedPropertyChangedEventArgs.cs
- HtmlElementCollection.cs
- HtmlInputImage.cs
- ClientScriptItemCollection.cs
- NotificationContext.cs
- SimpleHandlerBuildProvider.cs
- wpf-etw.cs
- FontCollection.cs
- ValidationResults.cs
- Exceptions.cs
- CorePropertiesFilter.cs
- DesignerVerb.cs
- TCPListener.cs
- StatusStrip.cs
- ToolStripItemImageRenderEventArgs.cs
- ModuleBuilder.cs
- ConnectionsZoneAutoFormat.cs
- MessageFault.cs
- XmlResolver.cs
- SafeCryptHandles.cs
- PresentationAppDomainManager.cs
- UnsafeNativeMethods.cs
- DataGridViewColumnStateChangedEventArgs.cs
- RichTextBoxConstants.cs
- UIElement3D.cs
- StyleSheet.cs
- ConnectionManager.cs
- Rotation3DAnimationUsingKeyFrames.cs
- columnmapkeybuilder.cs
- ProviderConnectionPointCollection.cs
- DesignerAdRotatorAdapter.cs
- GPPOINTF.cs
- DataGridViewButtonColumn.cs
- SettingsContext.cs
- Block.cs
- ImmutableAssemblyCacheEntry.cs
- RefreshPropertiesAttribute.cs
- IndicCharClassifier.cs
- OraclePermissionAttribute.cs
- WebBrowserContainer.cs
- TemplateAction.cs
- MatrixCamera.cs
- RequestCachePolicy.cs
- WeakReference.cs
- LineUtil.cs
- NullableFloatMinMaxAggregationOperator.cs
- StringToken.cs
- ArgumentDesigner.xaml.cs
- ObjectAnimationUsingKeyFrames.cs
- PackWebResponse.cs
- Rotation3DAnimationBase.cs
- CodeMemberField.cs
- ZoneMembershipCondition.cs
- GeneralTransform3DGroup.cs
- EventLogger.cs
- CrossAppDomainChannel.cs
- PublisherMembershipCondition.cs
- DeferredElementTreeState.cs
- GridViewCommandEventArgs.cs
- QueryableDataSource.cs
- IDQuery.cs
- RegexGroup.cs