Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / BaseAddressElementCollection.cs / 1 / BaseAddressElementCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
[ConfigurationCollection(typeof(BaseAddressElement), CollectionType = ConfigurationElementCollectionType.BasicMap)]
public sealed partial class BaseAddressElementCollection : ServiceModelConfigurationElementCollection
{
public BaseAddressElementCollection()
: base(ConfigurationElementCollectionType.BasicMap, ConfigurationStrings.Add)
{}
protected override ConfigurationElement CreateNewElement()
{
return new BaseAddressElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
if (element == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
}
BaseAddressElement configElementKey = (BaseAddressElement)element;
return configElementKey.BaseAddress;
}
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
- XmlCountingReader.cs
- ConstraintCollection.cs
- PageBuildProvider.cs
- SkipStoryboardToFill.cs
- WebScriptMetadataMessageEncoderFactory.cs
- ToolStripSeparator.cs
- InputMethodStateChangeEventArgs.cs
- InfoCardBinaryReader.cs
- PermissionRequestEvidence.cs
- TypeDependencyAttribute.cs
- DrawingBrush.cs
- ConnectionsZoneDesigner.cs
- DataGridViewDataConnection.cs
- AddressHeaderCollection.cs
- Soap11ServerProtocol.cs
- DateTimeFormat.cs
- TrustManagerPromptUI.cs
- BufferedReadStream.cs
- FileStream.cs
- MultiAsyncResult.cs
- FileRecordSequenceHelper.cs
- UnsettableComboBox.cs
- XmlQueryCardinality.cs
- DBSchemaTable.cs
- CharAnimationUsingKeyFrames.cs
- HuffmanTree.cs
- EntityContainerEntitySet.cs
- ToggleProviderWrapper.cs
- MessagePropertyFilter.cs
- SmiMetaData.cs
- KeyedHashAlgorithm.cs
- NotifyIcon.cs
- AlphabeticalEnumConverter.cs
- PropertiesTab.cs
- DesigntimeLicenseContext.cs
- HyperLinkColumn.cs
- DataGridViewRowConverter.cs
- PinProtectionHelper.cs
- TimelineGroup.cs
- DoubleIndependentAnimationStorage.cs
- WsatAdminException.cs
- InteropTrackingRecord.cs
- UdpTransportSettingsElement.cs
- Visual3D.cs
- Literal.cs
- ThreadStartException.cs
- UrlAuthFailedErrorFormatter.cs
- StorageMappingItemCollection.cs
- BufferedResponseStream.cs
- ClrProviderManifest.cs
- Properties.cs
- UnknownWrapper.cs
- SafeCryptHandles.cs
- PersistStreamTypeWrapper.cs
- IDataContractSurrogate.cs
- XPathSingletonIterator.cs
- OSFeature.cs
- MultipleCopiesCollection.cs
- PropertyIDSet.cs
- StoreItemCollection.Loader.cs
- MultiTrigger.cs
- TemplatedAdorner.cs
- ZeroOpNode.cs
- DataGridViewCell.cs
- X509Utils.cs
- InfoCardKeyedHashAlgorithm.cs
- Table.cs
- AllMembershipCondition.cs
- TableLayoutCellPaintEventArgs.cs
- DataServiceCollectionOfT.cs
- Switch.cs
- CommonDialog.cs
- Point.cs
- AccessDataSourceView.cs
- CommonDialog.cs
- ProcessModelInfo.cs
- StreamInfo.cs
- QilChoice.cs
- IndependentAnimationStorage.cs
- ColorAnimation.cs
- ListCommandEventArgs.cs
- CatalogPart.cs
- ADRole.cs
- WindowsScrollBarBits.cs
- SamlConstants.cs
- AccessViolationException.cs
- base64Transforms.cs
- CharConverter.cs
- SafeProcessHandle.cs
- VariableBinder.cs
- CookieProtection.cs
- BindingMemberInfo.cs
- CancellationHandler.cs
- BezierSegment.cs
- PolicyUnit.cs
- HostedTransportConfigurationManager.cs
- ToggleProviderWrapper.cs
- ExpressionsCollectionConverter.cs
- MaskedTextBox.cs
- NamespaceCollection.cs