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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapEffectInput.cs
- Renderer.cs
- WaveHeader.cs
- FormViewActionList.cs
- NavigationExpr.cs
- PaintEvent.cs
- PolicyLevel.cs
- NetTcpBindingCollectionElement.cs
- GeneralTransform.cs
- RC2.cs
- SvcMapFileLoader.cs
- AlternationConverter.cs
- UniqueID.cs
- DateTimeFormatInfo.cs
- CallTemplateAction.cs
- ClientUrlResolverWrapper.cs
- MonitoringDescriptionAttribute.cs
- SectionXmlInfo.cs
- ImageFormatConverter.cs
- BrowserCapabilitiesFactory.cs
- FontUnit.cs
- ServiceOperationParameter.cs
- SourceElementsCollection.cs
- TextAdaptor.cs
- AccessDataSourceView.cs
- GlyphRun.cs
- TextEditorContextMenu.cs
- typedescriptorpermission.cs
- CalendarDay.cs
- QilScopedVisitor.cs
- Utils.cs
- KoreanLunisolarCalendar.cs
- FormsAuthenticationModule.cs
- MatchingStyle.cs
- CanonicalXml.cs
- ComContractElementCollection.cs
- Region.cs
- LogicalMethodInfo.cs
- XmlSchemaChoice.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- HtmlImage.cs
- BaseTemplateBuildProvider.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AudioException.cs
- Automation.cs
- uribuilder.cs
- WriteFileContext.cs
- PageParserFilter.cs
- WhitespaceRuleReader.cs
- WebControlAdapter.cs
- WindowsFormsHelpers.cs
- EpmCustomContentSerializer.cs
- WSDualHttpBinding.cs
- CookieProtection.cs
- CommonXSendMessage.cs
- UserNameServiceElement.cs
- SqlBulkCopyColumnMappingCollection.cs
- TrackBarRenderer.cs
- CheckedPointers.cs
- ScriptHandlerFactory.cs
- HtmlShim.cs
- PropertyGeneratedEventArgs.cs
- ControlPropertyNameConverter.cs
- NaturalLanguageHyphenator.cs
- ResourceSet.cs
- PartitionedStreamMerger.cs
- DtdParser.cs
- ComplexLine.cs
- DataGridToolTip.cs
- RegexMatchCollection.cs
- XmlIlVisitor.cs
- SpecialFolderEnumConverter.cs
- InfoCardTrace.cs
- ObjectAssociationEndMapping.cs
- PackWebRequestFactory.cs
- XslTransformFileEditor.cs
- RuleSetCollection.cs
- ListViewDeletedEventArgs.cs
- XmlSchemaExporter.cs
- InputReport.cs
- InputReferenceExpression.cs
- ValueQuery.cs
- MemberPathMap.cs
- SqlRewriteScalarSubqueries.cs
- BasicDesignerLoader.cs
- ApplicationContext.cs
- SingleAnimationBase.cs
- TabControlAutomationPeer.cs
- DataAdapter.cs
- Interfaces.cs
- Marshal.cs
- SelectManyQueryOperator.cs
- LongValidatorAttribute.cs
- AnnouncementService.cs
- PersonalizationProvider.cs
- ExtractCollection.cs
- CatalogPart.cs
- MarkupProperty.cs
- XXXOnTypeBuilderInstantiation.cs
- MarkupWriter.cs