Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ComUdtElementCollection.cs / 1 / ComUdtElementCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Collections;
using System.Configuration;
using System.Globalization;
[ConfigurationCollection(typeof(ComUdtElement), AddItemName = ConfigurationStrings.ComUdt)]
public sealed class ComUdtElementCollection : ServiceModelEnhancedConfigurationElementCollection
{
public ComUdtElementCollection()
: base(ConfigurationStrings.ComUdt)
{}
protected override bool ThrowOnDuplicate
{
get {return false; }
}
protected override Object GetElementKey(ConfigurationElement element)
{
if (element == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
}
ComUdtElement configElementKey = (ComUdtElement)element;
return configElementKey.TypeDefID;
}
}
}
// 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
- WebPartConnectionsCloseVerb.cs
- PersonalizationProviderHelper.cs
- ClientUrlResolverWrapper.cs
- TextRangeAdaptor.cs
- PaintValueEventArgs.cs
- FilterInvalidBodyAccessException.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RestHandlerFactory.cs
- DataList.cs
- PointAnimationClockResource.cs
- XPathNodeList.cs
- DbModificationCommandTree.cs
- WindowsListViewItem.cs
- CodeCommentStatement.cs
- MatrixUtil.cs
- odbcmetadatacolumnnames.cs
- ResourcePool.cs
- ApplicationContext.cs
- PrintController.cs
- MimeMapping.cs
- SystemNetHelpers.cs
- RepeatBehaviorConverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- SctClaimDictionary.cs
- DispatcherHookEventArgs.cs
- RoutedCommand.cs
- PtsHelper.cs
- EncoderFallback.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- NameValueCollection.cs
- InvalidCastException.cs
- Rectangle.cs
- StylusSystemGestureEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- SoapMessage.cs
- GeneralTransform2DTo3D.cs
- WorkflowApplicationAbortedException.cs
- SystemResourceHost.cs
- ObjectStorage.cs
- TimersDescriptionAttribute.cs
- ResourceProperty.cs
- GeometryDrawing.cs
- ElementsClipboardData.cs
- ListBoxItemWrapperAutomationPeer.cs
- PolyQuadraticBezierSegment.cs
- BitmapData.cs
- ListControl.cs
- Item.cs
- GenerateScriptTypeAttribute.cs
- ComponentDispatcher.cs
- SecurityElement.cs
- CodeLinePragma.cs
- Image.cs
- RenderingEventArgs.cs
- DataGridViewCell.cs
- CryptoKeySecurity.cs
- List.cs
- VectorCollection.cs
- ApplicationProxyInternal.cs
- MatrixAnimationUsingKeyFrames.cs
- Debug.cs
- AnnouncementEventArgs.cs
- ToolStripItemCollection.cs
- SQLDecimalStorage.cs
- XmlNodeWriter.cs
- ArraySubsetEnumerator.cs
- AnnouncementEndpointElement.cs
- BitmapEffectDrawingContextState.cs
- NameSpaceEvent.cs
- ImageListImageEditor.cs
- ConfigPathUtility.cs
- SignedXml.cs
- XamlFilter.cs
- WindowsPrincipal.cs
- ReturnValue.cs
- WebPartEventArgs.cs
- Journaling.cs
- DrawingContextDrawingContextWalker.cs
- AppliedDeviceFiltersDialog.cs
- regiisutil.cs
- XpsInterleavingPolicy.cs
- RectangleHotSpot.cs
- Keywords.cs
- ListParagraph.cs
- Thickness.cs
- IPCCacheManager.cs
- ImageField.cs
- CollectionType.cs
- RegistrySecurity.cs
- ResourcePool.cs
- WebConfigurationHost.cs
- TransactionException.cs
- SelectingProviderEventArgs.cs
- QueueSurrogate.cs
- GorillaCodec.cs
- TabPanel.cs
- Serializer.cs
- OciHandle.cs
- HitTestFilterBehavior.cs