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
- RuntimeIdentifierPropertyAttribute.cs
- CheckBoxStandardAdapter.cs
- AxHost.cs
- MethodInfo.cs
- CheckedPointers.cs
- EncodingTable.cs
- BinaryObjectWriter.cs
- TreeBuilderXamlTranslator.cs
- CharEnumerator.cs
- SignedXmlDebugLog.cs
- OleStrCAMarshaler.cs
- FormViewInsertedEventArgs.cs
- SSmlParser.cs
- XmlNavigatorStack.cs
- Speller.cs
- GetWinFXPath.cs
- DLinqColumnProvider.cs
- ToolStripManager.cs
- Control.cs
- EdmMember.cs
- Int32RectConverter.cs
- SynchronousChannelMergeEnumerator.cs
- NamedPipeConnectionPoolSettings.cs
- PolyLineSegment.cs
- DelegateHelpers.Generated.cs
- CompressStream.cs
- SqlCacheDependencyDatabase.cs
- SortedDictionary.cs
- GridViewColumnCollection.cs
- DataTemplateSelector.cs
- MinMaxParagraphWidth.cs
- SessionPageStateSection.cs
- smtpconnection.cs
- WindowsTreeView.cs
- TypeInfo.cs
- CombinedGeometry.cs
- PeerInvitationResponse.cs
- MulticastNotSupportedException.cs
- UnsafeNativeMethods.cs
- SynchronizingStream.cs
- EtwTrace.cs
- FileStream.cs
- LinearGradientBrush.cs
- BooleanAnimationBase.cs
- HttpCacheVary.cs
- SqlExpressionNullability.cs
- SocketInformation.cs
- DataMember.cs
- SimpleApplicationHost.cs
- SecurityState.cs
- ProcessInputEventArgs.cs
- Point.cs
- Models.cs
- ScriptingScriptResourceHandlerSection.cs
- coordinatorscratchpad.cs
- CodeGroup.cs
- ListComponentEditor.cs
- UnSafeCharBuffer.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- StartUpEventArgs.cs
- SafeCloseHandleCritical.cs
- WCFBuildProvider.cs
- UIntPtr.cs
- SpellCheck.cs
- HwndMouseInputProvider.cs
- VariableQuery.cs
- DetailsViewUpdatedEventArgs.cs
- EnvironmentPermission.cs
- XPathAncestorQuery.cs
- DefaultAutoFieldGenerator.cs
- serverconfig.cs
- NetworkStream.cs
- SqlNotificationEventArgs.cs
- PageCatalogPartDesigner.cs
- StringUtil.cs
- SpStreamWrapper.cs
- DoubleAnimation.cs
- IPHostEntry.cs
- ConfigurationStrings.cs
- StatusBar.cs
- WebServiceFault.cs
- XmlArrayItemAttributes.cs
- ConfigXmlAttribute.cs
- ACE.cs
- AlphabeticalEnumConverter.cs
- CoreSwitches.cs
- BinHexEncoder.cs
- DataBinding.cs
- SmtpReplyReader.cs
- TemplatePartAttribute.cs
- EncryptedKey.cs
- KnownColorTable.cs
- OperatorExpressions.cs
- ZipFileInfoCollection.cs
- NumericUpDown.cs
- InkCanvasInnerCanvas.cs
- CompModSwitches.cs
- XmlTextWriter.cs
- DialogResultConverter.cs
- OracleRowUpdatedEventArgs.cs