Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / BypassElement.cs / 1305376 / BypassElement.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net.Configuration
{
using System;
using System.Configuration;
using System.Reflection;
using System.Security.Permissions;
public sealed class BypassElement : ConfigurationElement
{
public BypassElement()
{
this.properties.Add(this.address);
}
public BypassElement(string address) : this()
{
this.Address = address;
}
protected override ConfigurationPropertyCollection Properties
{
get
{
return this.properties;
}
}
[ConfigurationProperty(ConfigurationStrings.Address, IsRequired=true, IsKey = true)]
public string Address
{
get { return (string)this[this.address]; }
set { this[this.address] = value; }
}
internal string Key
{
get { return this.Address; }
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty address =
new ConfigurationProperty(ConfigurationStrings.Address, typeof(string), null,
ConfigurationPropertyOptions.IsKey);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net.Configuration
{
using System;
using System.Configuration;
using System.Reflection;
using System.Security.Permissions;
public sealed class BypassElement : ConfigurationElement
{
public BypassElement()
{
this.properties.Add(this.address);
}
public BypassElement(string address) : this()
{
this.Address = address;
}
protected override ConfigurationPropertyCollection Properties
{
get
{
return this.properties;
}
}
[ConfigurationProperty(ConfigurationStrings.Address, IsRequired=true, IsKey = true)]
public string Address
{
get { return (string)this[this.address]; }
set { this[this.address] = value; }
}
internal string Key
{
get { return this.Address; }
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty address =
new ConfigurationProperty(ConfigurationStrings.Address, typeof(string), null,
ConfigurationPropertyOptions.IsKey);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JoinQueryOperator.cs
- _LocalDataStoreMgr.cs
- CodeLabeledStatement.cs
- RangeValuePattern.cs
- StylusPoint.cs
- AudioLevelUpdatedEventArgs.cs
- ADMembershipProvider.cs
- ExternalCalls.cs
- SqlServices.cs
- PtsContext.cs
- DataTableTypeConverter.cs
- ConvertersCollection.cs
- WebServiceReceive.cs
- SystemIPInterfaceProperties.cs
- WrappedIUnknown.cs
- TableStyle.cs
- QuadraticBezierSegment.cs
- LinqDataSourceDisposeEventArgs.cs
- HashMembershipCondition.cs
- RTLAwareMessageBox.cs
- Accessible.cs
- GPRECT.cs
- StyleModeStack.cs
- SplineKeyFrames.cs
- ColorConvertedBitmap.cs
- TextTreeObjectNode.cs
- BinaryReader.cs
- TextFormattingConverter.cs
- FileChangesMonitor.cs
- FontSourceCollection.cs
- StringUtil.cs
- SiteMapNodeItem.cs
- RtfFormatStack.cs
- DrawTreeNodeEventArgs.cs
- PrimitiveDataContract.cs
- ProxyWebPartManager.cs
- AssemblyAttributesGoHere.cs
- NamespaceEmitter.cs
- ToolStripSeparator.cs
- DurationConverter.cs
- HttpListenerContext.cs
- ListSourceHelper.cs
- TagPrefixAttribute.cs
- FamilyCollection.cs
- ErrorHandlerModule.cs
- ADConnectionHelper.cs
- StringUtil.cs
- ToolTipService.cs
- ResourceSet.cs
- HwndSubclass.cs
- DesignerActionUIService.cs
- NonNullItemCollection.cs
- XmlSchemaSubstitutionGroup.cs
- GridViewRowPresenter.cs
- Sql8ConformanceChecker.cs
- __Filters.cs
- InstanceDataCollection.cs
- EventLogException.cs
- CommonProperties.cs
- TraceContextRecord.cs
- MyContact.cs
- Classification.cs
- TextRangeEditTables.cs
- SharedUtils.cs
- Bits.cs
- XmlToDatasetMap.cs
- FragmentQuery.cs
- MembershipUser.cs
- URLBuilder.cs
- ScriptControlDescriptor.cs
- RoutedEvent.cs
- StoreAnnotationsMap.cs
- RemoveFromCollection.cs
- DataSourceViewSchemaConverter.cs
- BlurBitmapEffect.cs
- CompiledIdentityConstraint.cs
- ContextInformation.cs
- DataBoundControl.cs
- FunctionDescription.cs
- ZipIOLocalFileHeader.cs
- FontDialog.cs
- Variable.cs
- mansign.cs
- ViewLoader.cs
- DiscoveryReference.cs
- ButtonChrome.cs
- TypeForwardedToAttribute.cs
- PermissionSetEnumerator.cs
- IPEndPoint.cs
- CopyCodeAction.cs
- CharacterMetrics.cs
- ExpressionBuilderContext.cs
- AnnotationObservableCollection.cs
- DataSourceCacheDurationConverter.cs
- WbemException.cs
- SqlXml.cs
- SymmetricAlgorithm.cs
- ReliableMessagingVersion.cs
- ICspAsymmetricAlgorithm.cs
- CodeSnippetStatement.cs