Code:
/ 4.0 / 4.0 / 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. 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
- Math.cs
- StringDictionary.cs
- XmlSchemaFacet.cs
- ToolStripManager.cs
- OneWayBindingElementImporter.cs
- SoapIgnoreAttribute.cs
- OdbcEnvironment.cs
- UserControl.cs
- wgx_render.cs
- TreeNodeConverter.cs
- FontStretch.cs
- Expander.cs
- InvokeProviderWrapper.cs
- DataSourceCache.cs
- MemoryStream.cs
- ComboBox.cs
- SqlException.cs
- BidOverLoads.cs
- WithParamAction.cs
- RemoteX509AsymmetricSecurityKey.cs
- TextEffectCollection.cs
- StylusOverProperty.cs
- EntityClientCacheEntry.cs
- ConfigurationStrings.cs
- XmlSchemaSubstitutionGroup.cs
- RightsManagementUser.cs
- MouseWheelEventArgs.cs
- CheckBoxAutomationPeer.cs
- EncryptedXml.cs
- Pens.cs
- WebPartDisplayModeEventArgs.cs
- CorruptingExceptionCommon.cs
- TextFormatterHost.cs
- MessagePropertyFilter.cs
- SynchronizedPool.cs
- ThumbAutomationPeer.cs
- ClientBuildManager.cs
- Collection.cs
- WinInetCache.cs
- Crypto.cs
- TCPClient.cs
- MDIWindowDialog.cs
- DateTimeUtil.cs
- AdjustableArrowCap.cs
- ViewPort3D.cs
- XamlWriter.cs
- RoleGroup.cs
- ImageBrush.cs
- XdrBuilder.cs
- CqlIdentifiers.cs
- AppSecurityManager.cs
- SBCSCodePageEncoding.cs
- Control.cs
- X509Chain.cs
- AttachmentService.cs
- InternalCompensate.cs
- HttpCapabilitiesSectionHandler.cs
- ContentPropertyAttribute.cs
- TextEffectCollection.cs
- EntityStoreSchemaFilterEntry.cs
- HostingPreferredMapPath.cs
- DataFormats.cs
- EmptyEnumerator.cs
- SimpleBitVector32.cs
- IChannel.cs
- ZoneLinkButton.cs
- ConsoleTraceListener.cs
- ComponentFactoryHelpers.cs
- MachineKeySection.cs
- GridViewPageEventArgs.cs
- ErrorWebPart.cs
- PerformanceCounters.cs
- TextEditorCopyPaste.cs
- TextDecorationUnitValidation.cs
- NotifyCollectionChangedEventArgs.cs
- DbSourceCommand.cs
- ListViewGroupConverter.cs
- SafeFindHandle.cs
- SafeNativeMethods.cs
- SoapBinding.cs
- CustomCredentialPolicy.cs
- SingleAnimationUsingKeyFrames.cs
- EntityStoreSchemaFilterEntry.cs
- AnnotationComponentChooser.cs
- Drawing.cs
- BufferModeSettings.cs
- EntityClientCacheKey.cs
- MissingSatelliteAssemblyException.cs
- TimeSpanMinutesConverter.cs
- Addressing.cs
- StaticSiteMapProvider.cs
- UniqueConstraint.cs
- ToolStripDropDownClosedEventArgs.cs
- WebHttpBindingElement.cs
- HttpHandlerAction.cs
- FindProgressChangedEventArgs.cs
- DecoderExceptionFallback.cs
- SignedPkcs7.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MediaCommands.cs