Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / UriSection.cs / 1 / UriSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Threading; ////// Summary description for UriSection. /// public sealed class UriSection : ConfigurationSection { public UriSection(){ this.properties.Add(this.idn); this.properties.Add(this.iriParsing); } [ConfigurationProperty(CommonConfigurationStrings.Idn)] public IdnElement Idn{ get { return (IdnElement)this[this.idn]; } } [ConfigurationProperty(CommonConfigurationStrings.IriParsing)] public IriParsingElement IriParsing { get{ return (IriParsingElement)this[this.iriParsing]; } } protected override ConfigurationPropertyCollection Properties { get{ return this.properties; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty idn = new ConfigurationProperty(CommonConfigurationStrings.Idn, typeof(IdnElement), null, ConfigurationPropertyOptions.None); readonly ConfigurationProperty iriParsing = new ConfigurationProperty(CommonConfigurationStrings.IriParsing, typeof(IriParsingElement), null, ConfigurationPropertyOptions.None); } internal sealed class UriSectionInternal { internal UriSectionInternal(UriSection section) { this.idn = section.Idn.Enabled; this.iriParsing = section.IriParsing.Enabled; } internal UriIdnScope Idn { get { return this.idn; } } internal bool IriParsing { get { return this.iriParsing; } } bool iriParsing; UriIdnScope idn; internal static object ClassSyncObject { get{ if (classSyncObject == null){ Interlocked.CompareExchange(ref classSyncObject, new object(), null); } return classSyncObject; } } internal static UriSectionInternal GetSection() { lock (ClassSyncObject){ UriSection section = PrivilegedConfigurationManager.GetSection(CommonConfigurationStrings.UriSectionPath) as UriSection; if (section == null) return null; return new UriSectionInternal(section); } } private static object classSyncObject; } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IRCollection.cs
- SetterBase.cs
- StateRuntime.cs
- InheritanceContextChangedEventManager.cs
- SoapSchemaImporter.cs
- Attributes.cs
- PrePostDescendentsWalker.cs
- WhitespaceRuleLookup.cs
- TreeNode.cs
- CancellationToken.cs
- DiscardableAttribute.cs
- MimeBasePart.cs
- FlowDocument.cs
- ReaderOutput.cs
- FrugalList.cs
- WebResourceUtil.cs
- ValidationRuleCollection.cs
- GeneralTransformGroup.cs
- TypeDependencyAttribute.cs
- WebPartEditorOkVerb.cs
- NamedPipeChannelListener.cs
- FontUnitConverter.cs
- IRCollection.cs
- SqlBooleanizer.cs
- PolygonHotSpot.cs
- Oci.cs
- Quaternion.cs
- ConnectionOrientedTransportChannelListener.cs
- SafeCertificateStore.cs
- JournalEntry.cs
- EncoderParameter.cs
- ObjectIDGenerator.cs
- IndentTextWriter.cs
- KeyedHashAlgorithm.cs
- DynamicPhysicalDiscoSearcher.cs
- FileCodeGroup.cs
- XmlLanguageConverter.cs
- InheritablePropertyChangeInfo.cs
- XsltLoader.cs
- Figure.cs
- MenuItemStyle.cs
- PKCS1MaskGenerationMethod.cs
- SafeSystemMetrics.cs
- ToolTipAutomationPeer.cs
- ExpressionBinding.cs
- NameValueSectionHandler.cs
- StatusBarDrawItemEvent.cs
- ByteAnimationUsingKeyFrames.cs
- MailMessageEventArgs.cs
- DataListItemEventArgs.cs
- InkCanvasSelection.cs
- RectValueSerializer.cs
- SafePipeHandle.cs
- StreamingContext.cs
- XmlSchemaSimpleContentRestriction.cs
- Funcletizer.cs
- InlineCollection.cs
- BStrWrapper.cs
- BaseCodeDomTreeGenerator.cs
- ToolStripPanelCell.cs
- CachedTypeface.cs
- Int64KeyFrameCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- WinFormsComponentEditor.cs
- StringArrayConverter.cs
- XmlFileEditor.cs
- X509CertificateStore.cs
- MediaCommands.cs
- XmlElementElementCollection.cs
- SqlConnectionHelper.cs
- FontFamilyValueSerializer.cs
- ChtmlPageAdapter.cs
- SerializerDescriptor.cs
- CodeDefaultValueExpression.cs
- MonthChangedEventArgs.cs
- ConfigurationPropertyCollection.cs
- TreeView.cs
- GcHandle.cs
- FixedPosition.cs
- FilterUserControlBase.cs
- TextEffect.cs
- WebControl.cs
- WindowsRichEdit.cs
- UpdatePanelControlTrigger.cs
- XmlQueryType.cs
- AxWrapperGen.cs
- XmlILAnnotation.cs
- ToolStripItemClickedEventArgs.cs
- MemoryMappedViewStream.cs
- MsmqChannelListenerBase.cs
- TraceContextRecord.cs
- Ray3DHitTestResult.cs
- ActivityMarkupSerializer.cs
- AppSettingsReader.cs
- shaperfactoryquerycacheentry.cs
- SystemThemeKey.cs
- hwndwrapper.cs
- FileDialog.cs
- NamedElement.cs
- MinMaxParagraphWidth.cs