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
- CodeNamespaceImport.cs
- TaskFormBase.cs
- XamlGridLengthSerializer.cs
- CompositeControl.cs
- Queue.cs
- GridViewRowEventArgs.cs
- OraclePermission.cs
- PhysicalFontFamily.cs
- ImplicitInputBrush.cs
- storagemappingitemcollection.viewdictionary.cs
- PerformanceCountersBase.cs
- XmlObjectSerializerReadContextComplex.cs
- SecurityTokenValidationException.cs
- TextDecorationCollection.cs
- TransactionTable.cs
- util.cs
- CapabilitiesRule.cs
- CacheOutputQuery.cs
- XhtmlConformanceSection.cs
- ColorConverter.cs
- GenericsInstances.cs
- AtlasWeb.Designer.cs
- Visitor.cs
- configsystem.cs
- BuildProvider.cs
- XmlnsDefinitionAttribute.cs
- CodeGroup.cs
- OleDbPropertySetGuid.cs
- DeadCharTextComposition.cs
- PersonalizationEntry.cs
- WebMessageEncodingElement.cs
- DataGridAddNewRow.cs
- Rect3D.cs
- BrowserDefinition.cs
- PersonalizationStateQuery.cs
- Italic.cs
- SetStoryboardSpeedRatio.cs
- SafeArchiveContext.cs
- ToolStripProgressBar.cs
- BinaryFormatter.cs
- StrokeCollectionConverter.cs
- CompositeControl.cs
- XmlAnyElementAttributes.cs
- SevenBitStream.cs
- ExtensibleClassFactory.cs
- DataTableExtensions.cs
- FigureHelper.cs
- ListBindingConverter.cs
- HitTestParameters3D.cs
- ServiceX509SecurityTokenProvider.cs
- StorageBasedPackageProperties.cs
- CharacterBufferReference.cs
- SpellerError.cs
- CodeDomConfigurationHandler.cs
- CodeDOMUtility.cs
- InvokeGenerator.cs
- ListViewUpdatedEventArgs.cs
- EnterpriseServicesHelper.cs
- AtomServiceDocumentSerializer.cs
- TextElement.cs
- GACIdentityPermission.cs
- ModuleBuilder.cs
- TemplateColumn.cs
- ChangePassword.cs
- DesignerVerb.cs
- ErrorEventArgs.cs
- __Filters.cs
- SqlCharStream.cs
- HuffCodec.cs
- GridViewDeletedEventArgs.cs
- SourceSwitch.cs
- EntryPointNotFoundException.cs
- XmlTextEncoder.cs
- SpellerError.cs
- DataFormats.cs
- SqlAggregateChecker.cs
- Geometry3D.cs
- BindingWorker.cs
- HiddenFieldPageStatePersister.cs
- RegionIterator.cs
- SvcFileManager.cs
- PlatformCulture.cs
- SmtpFailedRecipientsException.cs
- ClientData.cs
- Command.cs
- RoutedEventHandlerInfo.cs
- AudioFileOut.cs
- oledbmetadatacolumnnames.cs
- WebHttpBehavior.cs
- FlowchartDesignerCommands.cs
- DesignerWidgets.cs
- RSAProtectedConfigurationProvider.cs
- OleDbDataAdapter.cs
- PageHandlerFactory.cs
- UnmanagedHandle.cs
- DSGeneratorProblem.cs
- TemplateField.cs
- AnimatedTypeHelpers.cs
- ManipulationStartedEventArgs.cs
- DataGridViewSelectedRowCollection.cs