Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
// ==--==
/*==============================================================================
**
** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlWrappingWriter.cs
- Encoding.cs
- ExpressionBindingCollection.cs
- DataServiceQueryOfT.cs
- VariantWrapper.cs
- Selection.cs
- StreamGeometry.cs
- MissingManifestResourceException.cs
- WindowsClaimSet.cs
- TransformerTypeCollection.cs
- TcpProcessProtocolHandler.cs
- CreateUserWizardStep.cs
- DefaultTextStore.cs
- SpStreamWrapper.cs
- MemberDescriptor.cs
- CollectionBuilder.cs
- initElementDictionary.cs
- CalendarDateChangedEventArgs.cs
- ComplexLine.cs
- PagedDataSource.cs
- Selector.cs
- OledbConnectionStringbuilder.cs
- ResourceExpressionBuilder.cs
- GrammarBuilderDictation.cs
- PrivilegeNotHeldException.cs
- LOSFormatter.cs
- MarkerProperties.cs
- WebPartTracker.cs
- NavigationProperty.cs
- XmlSchemaObjectCollection.cs
- SimpleMailWebEventProvider.cs
- AdjustableArrowCap.cs
- PropertyChangingEventArgs.cs
- Viewport2DVisual3D.cs
- SizeChangedEventArgs.cs
- CustomBinding.cs
- Native.cs
- CompoundFileDeflateTransform.cs
- SystemIcons.cs
- DirectoryNotFoundException.cs
- TreeNodeCollection.cs
- AbsoluteQuery.cs
- DataBoundLiteralControl.cs
- TdsParserSafeHandles.cs
- DefaultTextStore.cs
- DWriteFactory.cs
- LambdaCompiler.Expressions.cs
- RuntimeWrappedException.cs
- _NetworkingPerfCounters.cs
- KeyEventArgs.cs
- IsolatedStorageFileStream.cs
- WebPartConnectVerb.cs
- AutomationPeer.cs
- Lease.cs
- BooleanAnimationUsingKeyFrames.cs
- ValueType.cs
- StateItem.cs
- DesignTimeTemplateParser.cs
- GAC.cs
- PropertyReferenceSerializer.cs
- SequenceFullException.cs
- DataGridViewColumnCollection.cs
- ApplicationException.cs
- GridViewUpdatedEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PackageStore.cs
- SpeechUI.cs
- DesignerTextBoxAdapter.cs
- ToolboxComponentsCreatingEventArgs.cs
- HandleRef.cs
- MimeWriter.cs
- AuthorizationRuleCollection.cs
- DataGridViewBand.cs
- InlineUIContainer.cs
- BamlBinaryReader.cs
- RequestQueryParser.cs
- StyleCollectionEditor.cs
- InputGestureCollection.cs
- ExpandSegmentCollection.cs
- Parallel.cs
- AttachInfo.cs
- _NetRes.cs
- Membership.cs
- HttpCacheParams.cs
- IdentitySection.cs
- Control.cs
- HostedTransportConfigurationBase.cs
- ElementNotAvailableException.cs
- SchemaImporter.cs
- SqlDataSourceCommandEventArgs.cs
- StandardRuntimeEnumValidator.cs
- ActivityExecutor.cs
- ITreeGenerator.cs
- HttpCapabilitiesBase.cs
- WebColorConverter.cs
- ClientScriptManagerWrapper.cs
- ResourceContainerWrapper.cs
- BindingMemberInfo.cs
- Publisher.cs
- DtcInterfaces.cs