Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Collections / Generic / KeyNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- NotConverter.cs
- ImageSourceConverter.cs
- CodeTypeReference.cs
- FormatException.cs
- ParameterReplacerVisitor.cs
- DefaultTextStoreTextComposition.cs
- LoginViewDesigner.cs
- CompositeFontFamily.cs
- FormViewInsertedEventArgs.cs
- WebBrowsableAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ToolBarPanel.cs
- MergeFilterQuery.cs
- SelectionWordBreaker.cs
- NavigationEventArgs.cs
- PropertyValueEditor.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RefreshEventArgs.cs
- ToolStripPanelRow.cs
- CheckedPointers.cs
- Point3DAnimationBase.cs
- RegexRunner.cs
- PropertyInfoSet.cs
- WebServiceHost.cs
- ServiceHttpModule.cs
- SafeHandles.cs
- Speller.cs
- UnsafeNativeMethods.cs
- Button.cs
- TargetInvocationException.cs
- Interfaces.cs
- XPathNodeIterator.cs
- WebPartConnectionsConnectVerb.cs
- DoubleConverter.cs
- CacheVirtualItemsEvent.cs
- ErrorWebPart.cs
- RemotingConfigParser.cs
- PolicyChain.cs
- AuthenticatedStream.cs
- KnownTypesProvider.cs
- XslVisitor.cs
- DataGridItemAutomationPeer.cs
- DataBindingHandlerAttribute.cs
- MsmqInputChannelBase.cs
- _LocalDataStoreMgr.cs
- SimpleWorkerRequest.cs
- AstNode.cs
- SelectorItemAutomationPeer.cs
- TextTreeUndo.cs
- ConsumerConnectionPointCollection.cs
- DataPagerFieldItem.cs
- ConfigUtil.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BamlMapTable.cs
- XmlSchemaAnnotation.cs
- QilStrConcat.cs
- sqlpipe.cs
- PrinterResolution.cs
- AspNetCompatibilityRequirementsAttribute.cs
- COM2ExtendedTypeConverter.cs
- BorderGapMaskConverter.cs
- OdbcException.cs
- PixelFormatConverter.cs
- Number.cs
- SwitchLevelAttribute.cs
- IncrementalHitTester.cs
- ValueSerializer.cs
- SequentialOutput.cs
- documentsequencetextpointer.cs
- ProgressBarAutomationPeer.cs
- ZipIOFileItemStream.cs
- AnnotationMap.cs
- RootBrowserWindowProxy.cs
- _AutoWebProxyScriptWrapper.cs
- Compiler.cs
- _NetRes.cs
- DataServiceHostFactory.cs
- HostSecurityManager.cs
- Convert.cs
- EventMap.cs
- Attributes.cs
- ModelTreeEnumerator.cs
- StorageComplexTypeMapping.cs
- ExpressionVisitorHelpers.cs
- AnimationException.cs
- TableLayoutCellPaintEventArgs.cs
- TakeQueryOptionExpression.cs
- pingexception.cs
- InputLanguageProfileNotifySink.cs
- AssemblyCollection.cs
- CryptoStream.cs
- UserControl.cs
- ListenerAdapterBase.cs
- SystemIPv6InterfaceProperties.cs
- WindowsGraphicsWrapper.cs
- HtmlButton.cs
- SafeArchiveContext.cs
- OdbcConnectionHandle.cs
- SHA384.cs
- EventLogEntryCollection.cs