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
- COM2TypeInfoProcessor.cs
- InvalidPrinterException.cs
- Repeater.cs
- EntitySqlQueryState.cs
- ColorConvertedBitmapExtension.cs
- followingquery.cs
- TimeManager.cs
- StringCollection.cs
- XmlIgnoreAttribute.cs
- BidPrivateBase.cs
- StylusButtonEventArgs.cs
- SemanticValue.cs
- DataViewSetting.cs
- MemoryRecordBuffer.cs
- RecognizeCompletedEventArgs.cs
- DisplayNameAttribute.cs
- TypeCodeDomSerializer.cs
- ViewStateChangedEventArgs.cs
- CompositeCollection.cs
- TextServicesCompartment.cs
- Activation.cs
- SynchronizedPool.cs
- IdentityManager.cs
- ComboBoxAutomationPeer.cs
- RequestCache.cs
- MaterialGroup.cs
- Int64AnimationUsingKeyFrames.cs
- XmlUtf8RawTextWriter.cs
- SerializerWriterEventHandlers.cs
- StrokeDescriptor.cs
- LineVisual.cs
- HtmlControlDesigner.cs
- ThicknessKeyFrameCollection.cs
- XmlAutoDetectWriter.cs
- EntityContainer.cs
- DesignerVerbCollection.cs
- ErrorFormatter.cs
- ValidationSummary.cs
- FileLevelControlBuilderAttribute.cs
- PageCatalogPart.cs
- ReaderContextStackData.cs
- DBParameter.cs
- LoginUtil.cs
- ReflectionServiceProvider.cs
- ProxySimple.cs
- IsolatedStorageFile.cs
- SiteMapSection.cs
- PlainXmlSerializer.cs
- Polygon.cs
- VectorCollectionValueSerializer.cs
- SizeLimitedCache.cs
- WindowsTreeView.cs
- DragAssistanceManager.cs
- MetadataHelper.cs
- Imaging.cs
- DBDataPermissionAttribute.cs
- _OSSOCK.cs
- QilReplaceVisitor.cs
- ConfigXmlComment.cs
- XmlValueConverter.cs
- Visual.cs
- BamlRecordReader.cs
- HttpFileCollection.cs
- XmlDataSourceView.cs
- ToolStripItemEventArgs.cs
- GridViewColumn.cs
- RegionData.cs
- GroupQuery.cs
- HtmlInputText.cs
- SchemaCollectionPreprocessor.cs
- LicenseProviderAttribute.cs
- TextControlDesigner.cs
- SignedPkcs7.cs
- TabletDeviceInfo.cs
- objectresult_tresulttype.cs
- CreateUserErrorEventArgs.cs
- ObjectReferenceStack.cs
- Fx.cs
- peersecuritysettings.cs
- StateDesigner.cs
- HtmlAnchor.cs
- MonikerSyntaxException.cs
- ContainerVisual.cs
- dbenumerator.cs
- LiteralControl.cs
- MailSettingsSection.cs
- SrgsSubset.cs
- ChtmlPageAdapter.cs
- AssociationSetMetadata.cs
- GroupStyle.cs
- GeometryGroup.cs
- Binding.cs
- DataRecordObjectView.cs
- SqlCharStream.cs
- WinInet.cs
- PrintingPermissionAttribute.cs
- UserPreferenceChangedEventArgs.cs
- ReadOnlyDataSourceView.cs
- PhonemeEventArgs.cs
- ListView.cs