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
- CFGGrammar.cs
- XpsS0ValidatingLoader.cs
- ExpressionEditorAttribute.cs
- SortDescription.cs
- HttpChannelHelpers.cs
- PasswordTextNavigator.cs
- TreeNode.cs
- DecimalAnimationBase.cs
- InternalMappingException.cs
- DbConnectionPoolIdentity.cs
- FormatException.cs
- FramingFormat.cs
- MemoryMappedViewStream.cs
- StreamUpdate.cs
- ComplexTypeEmitter.cs
- DateTimeFormatInfoScanner.cs
- PropertyGridEditorPart.cs
- updatecommandorderer.cs
- OracleColumn.cs
- validation.cs
- CookieParameter.cs
- ExtenderHelpers.cs
- TextElementCollectionHelper.cs
- SoapAttributeAttribute.cs
- DataGridViewComboBoxCell.cs
- EntityTypeBase.cs
- EmptyReadOnlyDictionaryInternal.cs
- ComponentEvent.cs
- OdbcDataReader.cs
- SiteMapNodeItemEventArgs.cs
- PropertyReference.cs
- FirstMatchCodeGroup.cs
- NumberAction.cs
- Util.cs
- Light.cs
- Icon.cs
- EDesignUtil.cs
- StatusBar.cs
- ModelUIElement3D.cs
- PictureBox.cs
- OverflowException.cs
- CreatingCookieEventArgs.cs
- AssemblyAttributesGoHere.cs
- MenuBase.cs
- RepeatBehavior.cs
- SplitContainerDesigner.cs
- BufferAllocator.cs
- RightNameExpirationInfoPair.cs
- WindowsListViewItem.cs
- AccessDataSource.cs
- TemplateControl.cs
- DefaultAuthorizationContext.cs
- FlowPosition.cs
- WebBrowserSiteBase.cs
- GradientBrush.cs
- RightsManagementInformation.cs
- WebHttpBindingElement.cs
- ButtonFlatAdapter.cs
- MsdtcClusterUtils.cs
- MediaElementAutomationPeer.cs
- StrokeCollection.cs
- DbReferenceCollection.cs
- ConnectionManagementSection.cs
- ObjectNotFoundException.cs
- CqlParserHelpers.cs
- Viewport3DAutomationPeer.cs
- DSACryptoServiceProvider.cs
- mansign.cs
- TypeElement.cs
- Enum.cs
- ThemeConfigurationDialog.cs
- SetMemberBinder.cs
- ConfigurationManagerInternalFactory.cs
- TagMapCollection.cs
- CompilationLock.cs
- WebBrowserNavigatingEventHandler.cs
- FileDataSourceCache.cs
- DelegatingTypeDescriptionProvider.cs
- Preprocessor.cs
- XmlMtomReader.cs
- TypeListConverter.cs
- DateTimeOffsetConverter.cs
- _DomainName.cs
- RepeaterItemCollection.cs
- SharedConnectionInfo.cs
- GradientPanel.cs
- ContainerUtilities.cs
- _ProxyChain.cs
- DataSourceControlBuilder.cs
- TaiwanLunisolarCalendar.cs
- GraphicsState.cs
- SplashScreen.cs
- SqlProvider.cs
- FontInfo.cs
- ProcessModelSection.cs
- StylusPointProperties.cs
- DynamicResourceExtensionConverter.cs
- SoapSchemaImporter.cs
- MouseButtonEventArgs.cs
- ErrorRuntimeConfig.cs