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
- Win32MouseDevice.cs
- ExpandCollapsePattern.cs
- Html32TextWriter.cs
- X509Certificate2Collection.cs
- DefaultValueConverter.cs
- InternalRelationshipCollection.cs
- HwndSourceKeyboardInputSite.cs
- AsyncStreamReader.cs
- CommandLineParser.cs
- SizeAnimationClockResource.cs
- ADConnectionHelper.cs
- PhysicalFontFamily.cs
- MultipartIdentifier.cs
- RegisteredHiddenField.cs
- DependencyObjectCodeDomSerializer.cs
- SecurityUtils.cs
- ExtendedPropertyDescriptor.cs
- XmlLanguageConverter.cs
- oledbmetadatacolumnnames.cs
- AnimationTimeline.cs
- CookielessHelper.cs
- WaitHandle.cs
- PropertyEmitterBase.cs
- Memoizer.cs
- TrustSection.cs
- LicenseProviderAttribute.cs
- QilInvoke.cs
- SqlTriggerContext.cs
- LinkDescriptor.cs
- OletxVolatileEnlistment.cs
- ResourceAssociationSetEnd.cs
- VirtualPath.cs
- JsonQueryStringConverter.cs
- StreamUpdate.cs
- AttributeSetAction.cs
- ColorConverter.cs
- XamlPointCollectionSerializer.cs
- SystemIPInterfaceProperties.cs
- EtwTrace.cs
- BinaryParser.cs
- AuthenticationSection.cs
- DataPagerFieldItem.cs
- PersonalizationProviderCollection.cs
- TableColumnCollection.cs
- CopyOnWriteList.cs
- _Connection.cs
- _NtlmClient.cs
- StylusButton.cs
- Exception.cs
- ExpressionBindingCollection.cs
- GridViewAutoFormat.cs
- RequestQueue.cs
- PageAdapter.cs
- TypeElementCollection.cs
- TypeElementCollection.cs
- FilterException.cs
- oledbmetadatacollectionnames.cs
- NotifyCollectionChangedEventArgs.cs
- validationstate.cs
- GeneratedCodeAttribute.cs
- Rect3D.cs
- FormatException.cs
- VisualProxy.cs
- WpfPayload.cs
- Message.cs
- WebColorConverter.cs
- ParserExtension.cs
- UnSafeCharBuffer.cs
- GeometryValueSerializer.cs
- GeometryDrawing.cs
- RadialGradientBrush.cs
- _CacheStreams.cs
- SpeakCompletedEventArgs.cs
- DES.cs
- AnnotationHelper.cs
- GeneralTransformGroup.cs
- DataList.cs
- BitmapEffectGeneralTransform.cs
- Ref.cs
- TextReader.cs
- XmlSchemaAttributeGroup.cs
- WindowsGrip.cs
- ChannelBinding.cs
- ToolStripItemEventArgs.cs
- ConfigurationValue.cs
- DynamicRenderer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- InvalidEnumArgumentException.cs
- AttributeTable.cs
- CompilerState.cs
- ProcessHostFactoryHelper.cs
- XmlSchemaValidator.cs
- TreeViewAutomationPeer.cs
- NavigationWindow.cs
- AttachedAnnotationChangedEventArgs.cs
- LogicalExpressionEditor.cs
- RadialGradientBrush.cs
- Profiler.cs
- RuntimeWrappedException.cs
- CustomGrammar.cs