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
- RoleGroupCollection.cs
- Activator.cs
- CheckableControlBaseAdapter.cs
- WebPermission.cs
- IndexedEnumerable.cs
- ColumnResizeUndoUnit.cs
- ConnectionsZoneAutoFormat.cs
- HMACSHA1.cs
- PreviousTrackingServiceAttribute.cs
- ActivityCodeGenerator.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DataSourceXmlSerializationAttribute.cs
- ConsumerConnectionPointCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- WindowsFormsDesignerOptionService.cs
- ClientConfigurationHost.cs
- Grid.cs
- XmlSubtreeReader.cs
- DispatcherEventArgs.cs
- WebPartTransformer.cs
- HtmlDocument.cs
- BaseResourcesBuildProvider.cs
- TransportElement.cs
- ImmutableCommunicationTimeouts.cs
- IndexExpression.cs
- XslVisitor.cs
- SendKeys.cs
- HttpCachePolicyElement.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- NavigationFailedEventArgs.cs
- DbBuffer.cs
- CommandValueSerializer.cs
- XmlSchemaObjectTable.cs
- GeneralTransform3DTo2D.cs
- MatchingStyle.cs
- ICollection.cs
- TextDocumentView.cs
- TypeExtensionConverter.cs
- SQLSingleStorage.cs
- UserPreferenceChangedEventArgs.cs
- SchemaNames.cs
- HtmlInputControl.cs
- HashCryptoHandle.cs
- WebPartDeleteVerb.cs
- GridViewColumn.cs
- Tablet.cs
- ByteStorage.cs
- DataGridViewCellParsingEventArgs.cs
- EdmScalarPropertyAttribute.cs
- TreeNodeSelectionProcessor.cs
- NameValueCache.cs
- RuleSet.cs
- Selection.cs
- HandlerFactoryWrapper.cs
- Int64.cs
- SslStream.cs
- SimpleLine.cs
- EntityDesignerUtils.cs
- BatchWriter.cs
- TextTrailingCharacterEllipsis.cs
- CompoundFileIOPermission.cs
- FrameworkTextComposition.cs
- SoapSchemaImporter.cs
- MultiDataTrigger.cs
- LayoutTableCell.cs
- RenamedEventArgs.cs
- BitmapInitialize.cs
- ScriptComponentDescriptor.cs
- WriterOutput.cs
- ApplyTemplatesAction.cs
- WebBrowserDesigner.cs
- _ContextAwareResult.cs
- StateDesigner.TransitionInfo.cs
- Color.cs
- CompilerParameters.cs
- tooltip.cs
- BaseProcessor.cs
- Point3DCollectionConverter.cs
- DataObjectSettingDataEventArgs.cs
- QilChoice.cs
- RsaSecurityTokenParameters.cs
- XmlComment.cs
- PeerConnector.cs
- XsdBuildProvider.cs
- UnknownBitmapEncoder.cs
- Light.cs
- ListGeneralPage.cs
- SymbolEqualComparer.cs
- RowVisual.cs
- FieldAccessException.cs
- CultureInfo.cs
- PassportPrincipal.cs
- SubstitutionList.cs
- DropShadowEffect.cs
- SoapServerMethod.cs
- Matrix3DConverter.cs
- NetDataContractSerializer.cs
- SessionPageStatePersister.cs
- NetTcpBindingCollectionElement.cs
- ImmutableObjectAttribute.cs