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
- RijndaelManagedTransform.cs
- X500Name.cs
- UpdatePanel.cs
- EventTrigger.cs
- RsaSecurityKey.cs
- FieldBuilder.cs
- OleDbConnectionFactory.cs
- DBSchemaRow.cs
- PasswordBox.cs
- HtmlHistory.cs
- TrackingMemoryStream.cs
- ScrollChrome.cs
- DecryptRequest.cs
- DataSourceControlBuilder.cs
- input.cs
- StrokeFIndices.cs
- AssociationTypeEmitter.cs
- TypeElementCollection.cs
- WebBrowserUriTypeConverter.cs
- DataGridViewSortCompareEventArgs.cs
- CacheSection.cs
- TreeNodeBindingCollection.cs
- WebPartMinimizeVerb.cs
- SchemaNames.cs
- QueueProcessor.cs
- UndoEngine.cs
- ListViewItemSelectionChangedEvent.cs
- StandardToolWindows.cs
- HtmlInputCheckBox.cs
- CatalogPart.cs
- UnmanagedMemoryStream.cs
- ViewStateChangedEventArgs.cs
- InputBinder.cs
- HttpCapabilitiesBase.cs
- FlowDocumentPage.cs
- EditingCoordinator.cs
- StandardToolWindows.cs
- _ListenerResponseStream.cs
- ResourceAttributes.cs
- DiagnosticsElement.cs
- WebPartHelpVerb.cs
- Point3DCollectionConverter.cs
- CharStorage.cs
- RegexBoyerMoore.cs
- GZipStream.cs
- DiffuseMaterial.cs
- Geometry.cs
- Set.cs
- KeyProperty.cs
- DefaultMemberAttribute.cs
- _ShellExpression.cs
- DesignColumnCollection.cs
- Context.cs
- SqlDataSourceQueryConverter.cs
- XmlRootAttribute.cs
- ObjectSecurity.cs
- FileDialog_Vista.cs
- SingleConverter.cs
- CapabilitiesSection.cs
- AttributeQuery.cs
- AxWrapperGen.cs
- CatalogZone.cs
- FileDialog.cs
- SchemaImporterExtensionElement.cs
- DateTimeOffsetAdapter.cs
- DateTimePicker.cs
- DataServiceEntityAttribute.cs
- BaseTemplateBuildProvider.cs
- BinaryExpression.cs
- XamlFilter.cs
- TripleDESCryptoServiceProvider.cs
- CFStream.cs
- CodeGeneratorOptions.cs
- LayeredChannelListener.cs
- SizeChangedEventArgs.cs
- WebPartUserCapability.cs
- DependencyProperty.cs
- CreateParams.cs
- HostedBindingBehavior.cs
- QuaternionAnimation.cs
- BoolLiteral.cs
- CodeMemberProperty.cs
- QilList.cs
- XPathNodePointer.cs
- PasswordRecoveryAutoFormat.cs
- DomNameTable.cs
- ElapsedEventArgs.cs
- XmlSchemaSimpleTypeUnion.cs
- PanelStyle.cs
- LocatorGroup.cs
- DesignerWebPartChrome.cs
- AssemblyInfo.cs
- TextDocumentView.cs
- CodeCatchClause.cs
- EdmFunction.cs
- RegexInterpreter.cs
- SafeNativeMethodsOther.cs
- FileSystemEventArgs.cs
- FixedPage.cs
- COM2PropertyBuilderUITypeEditor.cs