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
- SoapEnvelopeProcessingElement.cs
- DispatchWrapper.cs
- FillBehavior.cs
- RegexMatchCollection.cs
- SafeNativeMethods.cs
- LateBoundBitmapDecoder.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- MatcherBuilder.cs
- RegexCode.cs
- InternalSafeNativeMethods.cs
- DataMemberFieldEditor.cs
- TimelineGroup.cs
- HotCommands.cs
- PointAnimationClockResource.cs
- PolicyLevel.cs
- SelectorAutomationPeer.cs
- PageOutputQuality.cs
- CodeArrayIndexerExpression.cs
- MatchSingleFxEngineOpcode.cs
- ParameterBuilder.cs
- __TransparentProxy.cs
- ServiceReference.cs
- QilTernary.cs
- TextModifierScope.cs
- BaseUriHelper.cs
- ResXDataNode.cs
- SmtpMail.cs
- HttpChannelBindingToken.cs
- NativeMethods.cs
- InvalidDataException.cs
- PagerSettings.cs
- DefaultMemberAttribute.cs
- SwitchElementsCollection.cs
- DataGridViewCellStyleEditor.cs
- FormatVersion.cs
- ApplicationDirectoryMembershipCondition.cs
- StringUtil.cs
- Converter.cs
- TextAnchor.cs
- ProfileServiceManager.cs
- RuntimeConfig.cs
- DefaultBindingPropertyAttribute.cs
- PriorityBinding.cs
- RegexCompiler.cs
- PenLineJoinValidation.cs
- XmlSchema.cs
- securitycriticaldata.cs
- NavigatorInvalidBodyAccessException.cs
- CompilerErrorCollection.cs
- ListViewItemMouseHoverEvent.cs
- ReliabilityContractAttribute.cs
- ConnectionsZone.cs
- StateWorkerRequest.cs
- HitTestParameters3D.cs
- ReaderWriterLock.cs
- ToolStripDropDownClosedEventArgs.cs
- InlineUIContainer.cs
- AdCreatedEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- PageContentCollection.cs
- DynamicDataRouteHandler.cs
- Helper.cs
- WindowsEditBox.cs
- DataObjectFieldAttribute.cs
- Timer.cs
- GenericIdentity.cs
- SafeUserTokenHandle.cs
- MemoryFailPoint.cs
- WebPartConnectionsCloseVerb.cs
- TimelineClockCollection.cs
- OletxTransactionManager.cs
- XmlChoiceIdentifierAttribute.cs
- FunctionDescription.cs
- codemethodreferenceexpression.cs
- TypeConverterHelper.cs
- Button.cs
- BrowsableAttribute.cs
- BooleanAnimationBase.cs
- XsdDuration.cs
- BooleanFunctions.cs
- MenuAutoFormat.cs
- WhitespaceRuleReader.cs
- SessionEndedEventArgs.cs
- CheckPair.cs
- DataControlFieldCell.cs
- WindowsPen.cs
- SafeSecurityHandles.cs
- ExpressionBindingCollection.cs
- WsdlImporter.cs
- BulletDecorator.cs
- VectorAnimationUsingKeyFrames.cs
- ListViewPagedDataSource.cs
- Schema.cs
- Composition.cs
- RijndaelCryptoServiceProvider.cs
- BuildResultCache.cs
- ScriptServiceAttribute.cs
- InstanceKeyCollisionException.cs
- HwndSourceParameters.cs
- ProfileGroupSettingsCollection.cs