Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Collections / Generic / KeyNotFoundException.cs / 1 / KeyNotFoundException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: KeyNotFoundException
**
**
** Purpose: Exception class for Hashtable and Dictionary.
**
**
=============================================================================*/
namespace System.Collections.Generic {
using System;
using System.Runtime.Remoting;
using System.Runtime.Serialization;
[Serializable()]
[System.Runtime.InteropServices.ComVisible(true)]
public class KeyNotFoundException : SystemException, ISerializable {
public KeyNotFoundException ()
: base(Environment.GetResourceString("Arg_KeyNotFound")) {
SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND);
}
public KeyNotFoundException(String message)
: base(message) {
SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND);
}
public KeyNotFoundException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(System.__HResults.COR_E_KEYNOTFOUND);
}
protected KeyNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
// 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
- GeometryValueSerializer.cs
- TextStore.cs
- ChangeTracker.cs
- COM2Enum.cs
- CommandConverter.cs
- ToolboxItemSnapLineBehavior.cs
- ApplicationException.cs
- DispatcherEventArgs.cs
- AnimatedTypeHelpers.cs
- ReadOnlyMetadataCollection.cs
- ToolStripComboBox.cs
- DiscoveryServerProtocol.cs
- FormatterConverter.cs
- CreateUserWizardAutoFormat.cs
- XmlDocumentFragment.cs
- TreeViewBindingsEditor.cs
- ChangePassword.cs
- DbTypeMap.cs
- SqlConnectionHelper.cs
- FamilyCollection.cs
- GeneralTransformGroup.cs
- FieldNameLookup.cs
- OdbcFactory.cs
- ResourceSetExpression.cs
- Drawing.cs
- DecoderFallbackWithFailureFlag.cs
- FormViewAutoFormat.cs
- CodeDirectiveCollection.cs
- ClosableStream.cs
- XPathNodePointer.cs
- InitializationEventAttribute.cs
- TabRenderer.cs
- X500Name.cs
- TopClause.cs
- SourceSwitch.cs
- SiteMapHierarchicalDataSourceView.cs
- VisualStyleTypesAndProperties.cs
- ReferenceSchema.cs
- BuildProviderCollection.cs
- StreamWithDictionary.cs
- FontSourceCollection.cs
- LinkClickEvent.cs
- ADConnectionHelper.cs
- ColorConverter.cs
- StylusEventArgs.cs
- PasswordBoxAutomationPeer.cs
- SectionRecord.cs
- ItemList.cs
- WebPartVerbCollection.cs
- JsonStringDataContract.cs
- NameValuePermission.cs
- MenuCommand.cs
- DbProviderConfigurationHandler.cs
- PriorityQueue.cs
- DataGridTextBox.cs
- Line.cs
- IRCollection.cs
- SwitchLevelAttribute.cs
- DataSet.cs
- SingleAnimationBase.cs
- SafeCryptHandles.cs
- HttpConfigurationContext.cs
- FileController.cs
- SwitchAttribute.cs
- XsdBuildProvider.cs
- hresults.cs
- sqlcontext.cs
- SqlConnectionManager.cs
- ZoneLinkButton.cs
- TouchesCapturedWithinProperty.cs
- GeneralTransformGroup.cs
- DecoderReplacementFallback.cs
- MSAAEventDispatcher.cs
- Gdiplus.cs
- FileDialogCustomPlaces.cs
- ReferencedCollectionType.cs
- ApplicationException.cs
- QueryExpr.cs
- AssemblyBuilder.cs
- StretchValidation.cs
- TextStore.cs
- XmlIlVisitor.cs
- LinkedList.cs
- FlowDocumentReader.cs
- ScalarConstant.cs
- Vector3DCollectionValueSerializer.cs
- AuthenticationSection.cs
- SqlDataSourceFilteringEventArgs.cs
- EmptyElement.cs
- HasCopySemanticsAttribute.cs
- TrackingRecord.cs
- DiffuseMaterial.cs
- BindingBase.cs
- MenuTracker.cs
- RowToParametersTransformer.cs
- ColorIndependentAnimationStorage.cs
- RawStylusInputCustomData.cs
- Encoding.cs
- DelegateArgument.cs
- SpnegoTokenAuthenticator.cs