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
- ButtonColumn.cs
- Calendar.cs
- TriState.cs
- ThousandthOfEmRealPoints.cs
- InvalidPrinterException.cs
- MimeObjectFactory.cs
- MimeParameter.cs
- UInt64.cs
- ReadOnlyHierarchicalDataSource.cs
- NativeMethods.cs
- NativeBuffer.cs
- XmlDataSource.cs
- ExpanderAutomationPeer.cs
- DrawingGroup.cs
- ObjectQuery_EntitySqlExtensions.cs
- List.cs
- WebResourceUtil.cs
- TextEndOfLine.cs
- StsCommunicationException.cs
- SimpleMailWebEventProvider.cs
- Scripts.cs
- Size.cs
- ClientOptions.cs
- Size.cs
- ReplyChannel.cs
- ClientTarget.cs
- MatrixCamera.cs
- SeparatorAutomationPeer.cs
- VirtualPathProvider.cs
- RegexFCD.cs
- ConnectionPointGlyph.cs
- EditorPart.cs
- SourceFilter.cs
- CodeIdentifiers.cs
- ServiceMemoryGates.cs
- ModuleElement.cs
- sqlstateclientmanager.cs
- PrimitiveType.cs
- XmlDataCollection.cs
- BeginEvent.cs
- DrawToolTipEventArgs.cs
- Icon.cs
- GeometryDrawing.cs
- X509WindowsSecurityToken.cs
- GACIdentityPermission.cs
- SslStream.cs
- ErasingStroke.cs
- ConfigXmlCDataSection.cs
- AccessorTable.cs
- DefaultObjectMappingItemCollection.cs
- RegexCaptureCollection.cs
- NavigationExpr.cs
- RijndaelManagedTransform.cs
- SqlCommandAsyncResult.cs
- IndexExpression.cs
- ExplicitDiscriminatorMap.cs
- DispatcherEventArgs.cs
- ZoomPercentageConverter.cs
- GridViewSelectEventArgs.cs
- TextPointer.cs
- SemaphoreSecurity.cs
- EncodedStreamFactory.cs
- TreeViewCancelEvent.cs
- CacheSection.cs
- PositiveTimeSpanValidatorAttribute.cs
- HttpListener.cs
- ScrollEvent.cs
- SqlCacheDependencyDatabaseCollection.cs
- DispatcherHookEventArgs.cs
- ExpandableObjectConverter.cs
- PropertyMap.cs
- TagNameToTypeMapper.cs
- SqlSelectStatement.cs
- SystemWebSectionGroup.cs
- GroupBoxRenderer.cs
- OAVariantLib.cs
- ProjectionCamera.cs
- XmlBinaryReader.cs
- DataGridViewRowPostPaintEventArgs.cs
- CheckBoxStandardAdapter.cs
- Message.cs
- DesignerHierarchicalDataSourceView.cs
- UnsupportedPolicyOptionsException.cs
- CmsUtils.cs
- WriteFileContext.cs
- EllipseGeometry.cs
- PolyQuadraticBezierSegment.cs
- TextRangeSerialization.cs
- ObjectKeyFrameCollection.cs
- OleCmdHelper.cs
- StreamWithDictionary.cs
- AnnotationResourceChangedEventArgs.cs
- BlobPersonalizationState.cs
- LiteralControl.cs
- BindingListCollectionView.cs
- CustomError.cs
- Route.cs
- Tablet.cs
- TemplateEditingFrame.cs
- XPathSelectionIterator.cs