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
- NumberSubstitution.cs
- TcpChannelListener.cs
- RelativeSource.cs
- Attributes.cs
- ControlValuePropertyAttribute.cs
- WSHttpBinding.cs
- StandardCommands.cs
- ProfileSettingsCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- Pair.cs
- XsltException.cs
- SystemWebSectionGroup.cs
- ProcessHostConfigUtils.cs
- StorageAssociationTypeMapping.cs
- mactripleDES.cs
- SafeNativeMethodsOther.cs
- EmptyImpersonationContext.cs
- XmlSchemaObject.cs
- GcSettings.cs
- PackagePartCollection.cs
- UrlPropertyAttribute.cs
- WorkflowOwnerAsyncResult.cs
- PropertyEmitterBase.cs
- EncryptedData.cs
- FreezableDefaultValueFactory.cs
- ConfigXmlCDataSection.cs
- HandledMouseEvent.cs
- Latin1Encoding.cs
- WmlTextBoxAdapter.cs
- NameTable.cs
- HwndSubclass.cs
- MouseBinding.cs
- DocumentationServerProtocol.cs
- DesignerPerfEventProvider.cs
- HierarchicalDataSourceControl.cs
- uribuilder.cs
- RectValueSerializer.cs
- PlainXmlSerializer.cs
- MessageSecurityOverTcpElement.cs
- SoapTypeAttribute.cs
- TabControl.cs
- SerializationEventsCache.cs
- ComEventsSink.cs
- AsymmetricKeyExchangeDeformatter.cs
- SamlAdvice.cs
- XmlSchemaCompilationSettings.cs
- XsltInput.cs
- ISessionStateStore.cs
- ItemsPanelTemplate.cs
- ThumbButtonInfoCollection.cs
- ObjectResult.cs
- CodeCompiler.cs
- TabItemAutomationPeer.cs
- AuthorizationRule.cs
- PerformanceCounterScope.cs
- ValueQuery.cs
- BinHexDecoder.cs
- ContentTextAutomationPeer.cs
- NameValuePair.cs
- HebrewNumber.cs
- DrawingContextDrawingContextWalker.cs
- RemoteCryptoTokenProvider.cs
- UserPreferenceChangingEventArgs.cs
- XmlConvert.cs
- ButtonFieldBase.cs
- DataColumnMapping.cs
- XmlSerializerAssemblyAttribute.cs
- SqlInternalConnection.cs
- RemotingSurrogateSelector.cs
- WorkerRequest.cs
- RelationshipConverter.cs
- GridToolTip.cs
- SQLDecimal.cs
- PathSegmentCollection.cs
- EntitySetBaseCollection.cs
- TimerEventSubscriptionCollection.cs
- FileLevelControlBuilderAttribute.cs
- SizeF.cs
- WebHttpBinding.cs
- DataGridTablesFactory.cs
- DateTimeParse.cs
- Misc.cs
- SecurityRuntime.cs
- CompiledQueryCacheKey.cs
- ComplexObject.cs
- ChildrenQuery.cs
- TextEditorContextMenu.cs
- CultureInfo.cs
- InputQueueChannel.cs
- ScriptResourceInfo.cs
- NameSpaceEvent.cs
- XmlLoader.cs
- RewritingProcessor.cs
- AsynchronousChannel.cs
- AssemblyBuilder.cs
- ClipboardData.cs
- TemplateControlParser.cs
- listitem.cs
- Stack.cs
- HealthMonitoringSection.cs