Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / SchemeSettingElement.cs / 1305376 / SchemeSettingElement.cs
using System; using System.Diagnostics; namespace System.Configuration { public sealed class SchemeSettingElement : ConfigurationElement { private static readonly ConfigurationPropertyCollection properties; private static readonly ConfigurationProperty name; private static readonly ConfigurationProperty genericUriParserOptions; static SchemeSettingElement() { name = new ConfigurationProperty(CommonConfigurationStrings.SchemeName, typeof(string), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); genericUriParserOptions = new ConfigurationProperty(CommonConfigurationStrings.GenericUriParserOptions, typeof(GenericUriParserOptions), GenericUriParserOptions.Default, ConfigurationPropertyOptions.IsRequired); properties = new ConfigurationPropertyCollection(); properties.Add(name); properties.Add(genericUriParserOptions); } [ConfigurationProperty(CommonConfigurationStrings.SchemeName, DefaultValue = null, IsRequired = true, IsKey = true)] public string Name { get { return (string)this[name]; } } [ConfigurationProperty(CommonConfigurationStrings.GenericUriParserOptions, DefaultValue = ConfigurationPropertyOptions.None, IsRequired = true)] public GenericUriParserOptions GenericUriParserOptions { get { return (GenericUriParserOptions)this[genericUriParserOptions]; } } protected override ConfigurationPropertyCollection Properties { get { return properties; } } } internal sealed class SchemeSettingInternal { private string name; private GenericUriParserOptions options; public SchemeSettingInternal(string name, GenericUriParserOptions options) { Debug.Assert(name != null, "'name' must not be null."); this.name = name.ToLowerInvariant(); this.options = options; } public string Name { get { return name; } } public GenericUriParserOptions Options { get { return options; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Debug.cs
- GridViewItemAutomationPeer.cs
- StatusBarItemAutomationPeer.cs
- InputScope.cs
- XmlAnyAttributeAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- Route.cs
- TrackBar.cs
- EntityClientCacheEntry.cs
- SafeCryptoHandles.cs
- HttpCookiesSection.cs
- TdsParserSessionPool.cs
- COM2Enum.cs
- Helpers.cs
- SQLMembershipProvider.cs
- SendReply.cs
- Dynamic.cs
- UnSafeCharBuffer.cs
- FormatterServices.cs
- SqlNotificationRequest.cs
- SessionPageStateSection.cs
- TransformerInfoCollection.cs
- RecordBuilder.cs
- WindowsRegion.cs
- UnitySerializationHolder.cs
- AcceleratedTokenProviderState.cs
- BitmapDownload.cs
- XmlElementAttributes.cs
- _emptywebproxy.cs
- DataObjectAttribute.cs
- BevelBitmapEffect.cs
- OnOperation.cs
- NavigationService.cs
- CounterSample.cs
- Events.cs
- HttpException.cs
- ValuePatternIdentifiers.cs
- InkCanvas.cs
- DescendentsWalkerBase.cs
- SelectionChangedEventArgs.cs
- XmlSiteMapProvider.cs
- AsymmetricSignatureDeformatter.cs
- KeyValueConfigurationElement.cs
- SystemSounds.cs
- ErrorLog.cs
- ToolStripSplitStackLayout.cs
- VirtualizingPanel.cs
- DbModificationClause.cs
- WeakHashtable.cs
- DataColumnCollection.cs
- ServiceDefaults.cs
- httpstaticobjectscollection.cs
- AssociationSetEnd.cs
- NameScopePropertyAttribute.cs
- DataKeyArray.cs
- PerspectiveCamera.cs
- WebHttpEndpointElement.cs
- wpf-etw.cs
- unitconverter.cs
- CommandCollectionEditor.cs
- ProcessThread.cs
- QuotedPrintableStream.cs
- DataGridPagerStyle.cs
- XamlToRtfParser.cs
- ACL.cs
- CodeVariableDeclarationStatement.cs
- OleDbFactory.cs
- MetadataArtifactLoader.cs
- IntegerValidatorAttribute.cs
- ReferencedCategoriesDocument.cs
- FontStyles.cs
- DetailsViewDeleteEventArgs.cs
- NullableFloatMinMaxAggregationOperator.cs
- CompoundFileStorageReference.cs
- XmlUtil.cs
- SpellCheck.cs
- SqlCacheDependencyDatabaseCollection.cs
- Nullable.cs
- ToolboxService.cs
- EventProvider.cs
- TextHidden.cs
- SimpleApplicationHost.cs
- sqlmetadatafactory.cs
- EventPrivateKey.cs
- Globals.cs
- MsmqException.cs
- FocusTracker.cs
- SqlDataSource.cs
- ArrangedElementCollection.cs
- ViewStateModeByIdAttribute.cs
- LoadedEvent.cs
- FigureParagraph.cs
- OutOfProcStateClientManager.cs
- ScrollPattern.cs
- HandlerWithFactory.cs
- BitmapEffectCollection.cs
- VideoDrawing.cs
- HttpException.cs
- WindowInteractionStateTracker.cs
- CompilerTypeWithParams.cs