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
- TextRunProperties.cs
- COAUTHINFO.cs
- StringDictionary.cs
- InkCollectionBehavior.cs
- BitmapEffectDrawingContent.cs
- PreservationFileWriter.cs
- CheckBoxField.cs
- _HeaderInfo.cs
- PointLightBase.cs
- SystemFonts.cs
- DataServiceQueryProvider.cs
- CodeObjectCreateExpression.cs
- Action.cs
- GenericTextProperties.cs
- DesignerVerb.cs
- DocComment.cs
- FacetValues.cs
- QilStrConcat.cs
- Propagator.cs
- ItemCollectionEditor.cs
- InvalidAsynchronousStateException.cs
- DetailsViewInsertedEventArgs.cs
- CounterCreationDataCollection.cs
- RuntimeWrappedException.cs
- FreezableDefaultValueFactory.cs
- ModuleConfigurationInfo.cs
- cookiecontainer.cs
- EntityKeyElement.cs
- BaseTemplateBuildProvider.cs
- XPathException.cs
- SettingsBindableAttribute.cs
- ToolstripProfessionalRenderer.cs
- GridViewColumn.cs
- ChannelBase.cs
- SignatureGenerator.cs
- DocumentEventArgs.cs
- XmlSchemas.cs
- AppDomainAttributes.cs
- DynamicQueryableWrapper.cs
- TransactionFlowElement.cs
- ResolveCompletedEventArgs.cs
- ScriptControlManager.cs
- ItemsControlAutomationPeer.cs
- DelayedRegex.cs
- ListViewTableRow.cs
- ConvertEvent.cs
- CssStyleCollection.cs
- RelationshipWrapper.cs
- entityreference_tresulttype.cs
- _LoggingObject.cs
- SmtpSection.cs
- Empty.cs
- SafeCryptContextHandle.cs
- WebPartActionVerb.cs
- QueryMath.cs
- UserInitiatedNavigationPermission.cs
- MetabaseServerConfig.cs
- NavigationWindow.cs
- TransformProviderWrapper.cs
- BrowserDefinition.cs
- HitTestParameters.cs
- WinEventQueueItem.cs
- DirtyTextRange.cs
- TogglePatternIdentifiers.cs
- DifferencingCollection.cs
- ArrayTypeMismatchException.cs
- XPathNode.cs
- HelpInfo.cs
- WSHttpSecurityElement.cs
- ChangeBlockUndoRecord.cs
- Drawing.cs
- ArrayConverter.cs
- ConsoleCancelEventArgs.cs
- AnonymousIdentificationSection.cs
- ConfigurationSectionCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- InternalConfigConfigurationFactory.cs
- ExpressionBinding.cs
- PersonalizationDictionary.cs
- EncryptedPackage.cs
- PeerDuplexChannelListener.cs
- MsmqBindingFilter.cs
- MailMessageEventArgs.cs
- CipherData.cs
- WindowsListViewGroupHelper.cs
- TransactionChannelListener.cs
- NegotiateStream.cs
- PropertyContainer.cs
- AssemblyResourceLoader.cs
- FillErrorEventArgs.cs
- CurrencyManager.cs
- SHA384Managed.cs
- SchemaTypeEmitter.cs
- URLString.cs
- TextFormatterHost.cs
- ArrayTypeMismatchException.cs
- TimeEnumHelper.cs
- TextSimpleMarkerProperties.cs
- BaseTypeViewSchema.cs
- SecurityContext.cs