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
- ExtendedPropertyCollection.cs
- DocumentSequenceHighlightLayer.cs
- DBConcurrencyException.cs
- ThreadStartException.cs
- DeviceFilterDictionary.cs
- SerializationInfo.cs
- MetabaseSettingsIis7.cs
- MobileListItem.cs
- WrappingXamlSchemaContext.cs
- TagPrefixCollection.cs
- SingleAnimationBase.cs
- DataObjectEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- InvokeProviderWrapper.cs
- HashStream.cs
- MarkupProperty.cs
- DictionarySurrogate.cs
- BulletedListEventArgs.cs
- ZipIOLocalFileHeader.cs
- HtmlInputText.cs
- ArrayWithOffset.cs
- SecurityAppliedMessage.cs
- DbConnectionPoolIdentity.cs
- VirtualizedContainerService.cs
- DescriptionAttribute.cs
- MemberHolder.cs
- AmbiguousMatchException.cs
- ClientSession.cs
- CustomPopupPlacement.cs
- SqlRemoveConstantOrderBy.cs
- SQLGuid.cs
- NavigationCommands.cs
- QueryOutputWriter.cs
- InvokeHandlers.cs
- DataSourceHelper.cs
- FormViewDeleteEventArgs.cs
- StreamUpgradeProvider.cs
- InputGestureCollection.cs
- DataSourceControl.cs
- BatchServiceHost.cs
- MyContact.cs
- ZoneIdentityPermission.cs
- CommandHelpers.cs
- DesignSurfaceCollection.cs
- XmlSchemaParticle.cs
- ParameterToken.cs
- NamedElement.cs
- StateRuntime.cs
- Propagator.cs
- COM2Enum.cs
- GlyphRunDrawing.cs
- ExtendedProtectionPolicyElement.cs
- StaticSiteMapProvider.cs
- EventLogPropertySelector.cs
- HttpListenerException.cs
- NumberAction.cs
- QueryOperatorEnumerator.cs
- GridView.cs
- HotSpot.cs
- RadioButtonStandardAdapter.cs
- SchemaImporterExtensionElementCollection.cs
- NonVisualControlAttribute.cs
- InvalidCastException.cs
- altserialization.cs
- RegexCompiler.cs
- OutputCacheSettings.cs
- DataGridViewAccessibleObject.cs
- CallTemplateAction.cs
- MsmqNonTransactedPoisonHandler.cs
- UntrustedRecipientException.cs
- ProcessHost.cs
- WindowsTokenRoleProvider.cs
- HttpHandlerAction.cs
- ParameterCollection.cs
- XmlValidatingReaderImpl.cs
- SHA512Managed.cs
- TableCellAutomationPeer.cs
- TableStyle.cs
- GroupItem.cs
- Line.cs
- AuthorizationPolicyTypeElementCollection.cs
- ToolStripRendererSwitcher.cs
- CmsUtils.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SymbolEqualComparer.cs
- RelatedPropertyManager.cs
- MenuItemCollection.cs
- AnnotationComponentChooser.cs
- WindowsFormsHost.cs
- TextTreeTextBlock.cs
- ProgressPage.cs
- CompilationUtil.cs
- EventProviderTraceListener.cs
- MemberAccessException.cs
- DrawingBrush.cs
- ProcessingInstructionAction.cs
- infer.cs
- ToolStripDesignerUtils.cs
- EnvironmentPermission.cs
- TextDecoration.cs