Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / BaseAddressPrefixFilterElementCollection.cs / 1 / BaseAddressPrefixFilterElementCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
[ConfigurationCollection(typeof(BaseAddressPrefixFilterElement))]
public sealed class BaseAddressPrefixFilterElementCollection : ServiceModelConfigurationElementCollection
{
public BaseAddressPrefixFilterElementCollection()
: base(ConfigurationElementCollectionType.AddRemoveClearMap, ConfigurationStrings.Add)
{ }
protected override ConfigurationElement CreateNewElement()
{
return new BaseAddressPrefixFilterElement();
}
protected override Object GetElementKey(ConfigurationElement element)
{
if (element == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
}
BaseAddressPrefixFilterElement configElementKey = (BaseAddressPrefixFilterElement)element;
return configElementKey.Prefix;
}
protected override bool ThrowOnDuplicate
{
get { return true; }
}
}
}
// 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
- CheckBox.cs
- SqlCachedBuffer.cs
- QuerySetOp.cs
- PartialList.cs
- TaiwanLunisolarCalendar.cs
- MobileErrorInfo.cs
- ElementNotAvailableException.cs
- QuaternionAnimation.cs
- SplineKeyFrames.cs
- ListManagerBindingsCollection.cs
- ContextBase.cs
- RoleService.cs
- _LazyAsyncResult.cs
- COM2PictureConverter.cs
- DataSourceHelper.cs
- ProfileService.cs
- DataColumn.cs
- PersonalizableAttribute.cs
- OneOfConst.cs
- SystemInformation.cs
- XmlObjectSerializerReadContextComplex.cs
- ServiceOperationHelpers.cs
- XmlUTF8TextReader.cs
- MetadataExchangeClient.cs
- CapacityStreamGeometryContext.cs
- ComplexBindingPropertiesAttribute.cs
- EventlogProvider.cs
- EntityCollection.cs
- TemplateBindingExpression.cs
- _DomainName.cs
- FixedHighlight.cs
- DialogResultConverter.cs
- CalendarAutomationPeer.cs
- TemplateControlBuildProvider.cs
- SrgsSemanticInterpretationTag.cs
- SqlDependencyListener.cs
- HttpListenerRequestUriBuilder.cs
- Mapping.cs
- AnimationClockResource.cs
- StateBag.cs
- InstanceDataCollection.cs
- LocalizationComments.cs
- Site.cs
- PlaceHolder.cs
- DataBindingList.cs
- Path.cs
- CmsUtils.cs
- SynchronousChannel.cs
- PrimaryKeyTypeConverter.cs
- TextRunProperties.cs
- _TransmitFileOverlappedAsyncResult.cs
- SmuggledIUnknown.cs
- MouseGestureConverter.cs
- ImageBrush.cs
- ReverseInheritProperty.cs
- MatrixConverter.cs
- InvalidPrinterException.cs
- DefaultEvaluationContext.cs
- NetPeerTcpBinding.cs
- DeploymentSection.cs
- FrameworkTextComposition.cs
- CorrelationManager.cs
- DataGridViewTopLeftHeaderCell.cs
- SmiXetterAccessMap.cs
- CodeExpressionStatement.cs
- ProviderConnectionPointCollection.cs
- TypeUsage.cs
- Single.cs
- FixedPageStructure.cs
- SiteMapNodeItem.cs
- ChannelServices.cs
- LambdaCompiler.Statements.cs
- AvTrace.cs
- TextSerializer.cs
- AccessibleObject.cs
- SrgsRulesCollection.cs
- Axis.cs
- DataGridClipboardHelper.cs
- ItemList.cs
- DataListAutoFormat.cs
- AttributeQuery.cs
- RectAnimationClockResource.cs
- TypeSystemProvider.cs
- KeyValueInternalCollection.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ExpressionPrefixAttribute.cs
- Internal.cs
- ReferenceEqualityComparer.cs
- NullableDoubleSumAggregationOperator.cs
- _FixedSizeReader.cs
- InstalledVoice.cs
- StylesEditorDialog.cs
- CollectionView.cs
- OptimalBreakSession.cs
- BrowserInteropHelper.cs
- DictionarySectionHandler.cs
- SessionStateUtil.cs
- HttpCookieCollection.cs
- ExecutionContext.cs
- InputLanguageCollection.cs