Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ParentUndoUnit.cs
- GuidelineSet.cs
- ResourcesChangeInfo.cs
- StreamWriter.cs
- XhtmlBasicImageAdapter.cs
- DllNotFoundException.cs
- DateTimeConstantAttribute.cs
- _ShellExpression.cs
- CacheAxisQuery.cs
- EventLogTraceListener.cs
- PaperSize.cs
- JsonQNameDataContract.cs
- FileLevelControlBuilderAttribute.cs
- ProxyHwnd.cs
- ResourceReferenceKeyNotFoundException.cs
- CallbackException.cs
- MailBnfHelper.cs
- SpellerHighlightLayer.cs
- SurrogateSelector.cs
- SurrogateEncoder.cs
- SimpleRecyclingCache.cs
- HierarchicalDataSourceControl.cs
- ByteStreamGeometryContext.cs
- TextEffectCollection.cs
- ContextMenuStrip.cs
- CurrentChangingEventArgs.cs
- DocumentPropertiesDialog.cs
- TrailingSpaceComparer.cs
- _UriTypeConverter.cs
- IdleTimeoutMonitor.cs
- MemberRelationshipService.cs
- EventProviderWriter.cs
- ProgressChangedEventArgs.cs
- RegexNode.cs
- MessageBodyMemberAttribute.cs
- XmlEncodedRawTextWriter.cs
- Journaling.cs
- StringComparer.cs
- PtsContext.cs
- StylusPointProperty.cs
- PointAnimationUsingKeyFrames.cs
- MobileControlsSectionHandler.cs
- WebHttpElement.cs
- CssStyleCollection.cs
- Win32PrintDialog.cs
- AssemblyNameProxy.cs
- _Rfc2616CacheValidators.cs
- HtmlShimManager.cs
- XsdDateTime.cs
- WebPartEditorOkVerb.cs
- PassportAuthentication.cs
- LabelEditEvent.cs
- SqlNode.cs
- OracleParameter.cs
- SimpleType.cs
- ProtocolInformationWriter.cs
- XPathAncestorQuery.cs
- ServicesSection.cs
- SettingsAttributeDictionary.cs
- Transform.cs
- CriticalHandle.cs
- IisTraceWebEventProvider.cs
- StringUtil.cs
- DebugView.cs
- SiteIdentityPermission.cs
- DocumentXmlWriter.cs
- WeakReferenceKey.cs
- RenderData.cs
- BitmapFrameDecode.cs
- IgnoreFlushAndCloseStream.cs
- DocumentGridContextMenu.cs
- TrackBarRenderer.cs
- DocumentReference.cs
- ContainerAction.cs
- SmtpReplyReaderFactory.cs
- ColumnBinding.cs
- ThreadAbortException.cs
- PrintPreviewDialog.cs
- WindowsFormsHost.cs
- DBCommand.cs
- Misc.cs
- Vector3DKeyFrameCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- RowType.cs
- XmlDocumentFieldSchema.cs
- CacheMemory.cs
- ActivityExecutorSurrogate.cs
- FormsAuthenticationModule.cs
- CompositeCollectionView.cs
- DataSourceView.cs
- FontUnit.cs
- CompoundFileIOPermission.cs
- User.cs
- AnnotationResourceCollection.cs
- StylusPointPropertyUnit.cs
- PageRequestManager.cs
- PagerStyle.cs
- BookmarkEventArgs.cs
- ReliableSessionBindingElement.cs
- XomlCompilerError.cs