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
- SqlExpressionNullability.cs
- WebZone.cs
- DataGridLinkButton.cs
- safemediahandle.cs
- SafeEventHandle.cs
- ButtonBase.cs
- CaseInsensitiveHashCodeProvider.cs
- CompressStream.cs
- BamlVersionHeader.cs
- ListViewItem.cs
- _UncName.cs
- UIntPtr.cs
- GraphicsPathIterator.cs
- SqlSelectStatement.cs
- ObjectTag.cs
- CompilationSection.cs
- UIPermission.cs
- comcontractssection.cs
- ConfigurationManagerHelperFactory.cs
- JoinSymbol.cs
- CollectionConverter.cs
- EntityParameter.cs
- OdbcInfoMessageEvent.cs
- CharAnimationUsingKeyFrames.cs
- ProtocolsConfigurationEntry.cs
- DoubleAnimationUsingPath.cs
- FrameAutomationPeer.cs
- ContentDisposition.cs
- DataKeyArray.cs
- TargetInvocationException.cs
- Region.cs
- LogicalExpressionEditor.cs
- BitmapEffectInputConnector.cs
- DrawingImage.cs
- KeyedCollection.cs
- WorkflowView.cs
- COM2PropertyPageUITypeConverter.cs
- Point3DAnimationUsingKeyFrames.cs
- RecordManager.cs
- MDIControlStrip.cs
- ListViewSelectEventArgs.cs
- CodeValidator.cs
- ButtonChrome.cs
- FontWeightConverter.cs
- JsonObjectDataContract.cs
- EqualityComparer.cs
- DataServiceBehavior.cs
- ValidationSettings.cs
- URL.cs
- XmlReflectionImporter.cs
- UnmanagedMemoryStream.cs
- TaskResultSetter.cs
- ConfigurationLockCollection.cs
- PageVisual.cs
- EpmTargetPathSegment.cs
- AutoCompleteStringCollection.cs
- _NetworkingPerfCounters.cs
- HttpClientCertificate.cs
- ViewPort3D.cs
- Bezier.cs
- WorkflowInstanceContextProvider.cs
- SamlAttributeStatement.cs
- EventLogPermission.cs
- XslException.cs
- ExceptionUtil.cs
- NamespaceDecl.cs
- TextSchema.cs
- SynchronizedInputAdaptor.cs
- ReflectEventDescriptor.cs
- TypePropertyEditor.cs
- ErrorInfoXmlDocument.cs
- TextPointer.cs
- XPathCompileException.cs
- TypeResolver.cs
- DesignTimeParseData.cs
- AssociationSetMetadata.cs
- RadialGradientBrush.cs
- RuntimeResourceSet.cs
- FastEncoderWindow.cs
- ArrayList.cs
- Size.cs
- SchemaTableColumn.cs
- X509ClientCertificateCredentialsElement.cs
- ActivationServices.cs
- ConfigurationManagerInternalFactory.cs
- DesignerAttribute.cs
- SelectionItemProviderWrapper.cs
- BindingSource.cs
- GraphicsPath.cs
- ActivityTrace.cs
- UIHelper.cs
- SendKeys.cs
- HuffCodec.cs
- RIPEMD160Managed.cs
- entitydatasourceentitysetnameconverter.cs
- SecurityDocument.cs
- Vector3DCollectionValueSerializer.cs
- DataGridViewAddColumnDialog.cs
- HtmlElement.cs
- DockAndAnchorLayout.cs