Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ChannelEndpointElementCollection.cs / 1 / ChannelEndpointElementCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System;
using System.Collections;
using System.Configuration;
using System.Globalization;
[ConfigurationCollection(typeof(ChannelEndpointElement), AddItemName = ConfigurationStrings.Endpoint)]
public sealed class ChannelEndpointElementCollection : ServiceModelEnhancedConfigurationElementCollection
{
public ChannelEndpointElementCollection()
: base(ConfigurationStrings.Endpoint)
{}
protected override Object GetElementKey(ConfigurationElement element)
{
if (element == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
}
ChannelEndpointElement configElementKey = (ChannelEndpointElement) element;
return string.Format(CultureInfo.InvariantCulture,
"contractType:{0};name:{1}",
configElementKey.Contract,
configElementKey.Name);
}
}
}
// 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
- XmlBufferReader.cs
- VarInfo.cs
- PeerOutputChannel.cs
- ExportOptions.cs
- IndexedEnumerable.cs
- PrimitiveType.cs
- TextTreeInsertUndoUnit.cs
- RowUpdatedEventArgs.cs
- InputLangChangeRequestEvent.cs
- IndexExpression.cs
- FocusWithinProperty.cs
- Interfaces.cs
- StringStorage.cs
- XamlReaderHelper.cs
- SequentialUshortCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- NetStream.cs
- TextTreeTextBlock.cs
- RegisteredDisposeScript.cs
- AuthorizationRule.cs
- OnOperation.cs
- InvariantComparer.cs
- HtmlInputPassword.cs
- ToolStripSplitStackLayout.cs
- IApplicationTrustManager.cs
- QilChoice.cs
- UserPreferenceChangingEventArgs.cs
- WsdlInspector.cs
- StubHelpers.cs
- UidManager.cs
- EnumerableRowCollectionExtensions.cs
- OleDbRowUpdatingEvent.cs
- CurrentTimeZone.cs
- LinqDataSourceDeleteEventArgs.cs
- TextContainerChangedEventArgs.cs
- ServiceEndpointAssociationProvider.cs
- ThreadAbortException.cs
- MatcherBuilder.cs
- PropertyGeneratedEventArgs.cs
- PEFileReader.cs
- FormViewCommandEventArgs.cs
- ButtonChrome.cs
- BaseTemplateBuildProvider.cs
- FlowLayoutPanel.cs
- SequenceRangeCollection.cs
- WebUtil.cs
- ProtocolsConfigurationHandler.cs
- HuffCodec.cs
- ListChangedEventArgs.cs
- LoginViewDesigner.cs
- X509Certificate2.cs
- TransformerTypeCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- CallTemplateAction.cs
- SoapAttributeAttribute.cs
- SiteMapPath.cs
- Crypto.cs
- SourceFilter.cs
- XmlNamespaceDeclarationsAttribute.cs
- Point3DAnimationBase.cs
- DataRecord.cs
- ByteViewer.cs
- SwitchCase.cs
- VisualStyleElement.cs
- Panel.cs
- Thread.cs
- Point4DValueSerializer.cs
- NCryptNative.cs
- SettingsPropertyValueCollection.cs
- DataGridCellInfo.cs
- SHA256.cs
- XamlClipboardData.cs
- SamlSerializer.cs
- Util.cs
- DesignerCalendarAdapter.cs
- DataGridViewLinkCell.cs
- UnaryNode.cs
- Latin1Encoding.cs
- _ScatterGatherBuffers.cs
- SchemaElementDecl.cs
- SafePointer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ConstraintManager.cs
- SafeProcessHandle.cs
- Matrix3D.cs
- JsonSerializer.cs
- TypeDescriptionProviderAttribute.cs
- SqlGatherProducedAliases.cs
- ExtensionWindowHeader.cs
- ToolboxItemAttribute.cs
- ISFClipboardData.cs
- RsaSecurityKey.cs
- ByteKeyFrameCollection.cs
- XmlSchemaComplexContent.cs
- BamlLocalizer.cs
- BindingManagerDataErrorEventArgs.cs
- HighContrastHelper.cs
- TrustManager.cs
- NullRuntimeConfig.cs