Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Attributes.cs
- CompositionCommandSet.cs
- MarkupWriter.cs
- XamlFxTrace.cs
- PropertyGridCommands.cs
- SortableBindingList.cs
- Encoder.cs
- X509Extension.cs
- BaseCollection.cs
- ModelVisual3D.cs
- LeftCellWrapper.cs
- PerformanceCounterManager.cs
- HttpCacheParams.cs
- Listbox.cs
- Debugger.cs
- FileVersion.cs
- RemoteWebConfigurationHostServer.cs
- NativeMethods.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ExtendedPropertyCollection.cs
- TimelineCollection.cs
- Block.cs
- ExpressionConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- Empty.cs
- DiffuseMaterial.cs
- datacache.cs
- safemediahandle.cs
- SchemaNames.cs
- GroupItem.cs
- KeyFrames.cs
- Matrix.cs
- DnsPermission.cs
- ControlPropertyNameConverter.cs
- SchemaType.cs
- metadatamappinghashervisitor.cs
- RegexWriter.cs
- Activity.cs
- IBuiltInEvidence.cs
- TracingConnection.cs
- DefaultEventAttribute.cs
- control.ime.cs
- QueryCursorEventArgs.cs
- BinHexDecoder.cs
- FontSource.cs
- XmlJsonWriter.cs
- _DisconnectOverlappedAsyncResult.cs
- MessageSecurityException.cs
- TableParaClient.cs
- TypeConverter.cs
- ProfileInfo.cs
- WebPartCloseVerb.cs
- DescriptionAttribute.cs
- ClickablePoint.cs
- WindowsRebar.cs
- ExtensionElement.cs
- WebServiceData.cs
- HttpWebResponse.cs
- TextTreeText.cs
- BehaviorEditorPart.cs
- LogicalTreeHelper.cs
- DBSqlParserColumn.cs
- Timer.cs
- ImageMapEventArgs.cs
- DispatcherHookEventArgs.cs
- CollectionType.cs
- CTreeGenerator.cs
- SemaphoreFullException.cs
- OutOfProcStateClientManager.cs
- SocketException.cs
- RepeaterItemEventArgs.cs
- CodeRegionDirective.cs
- CopyCodeAction.cs
- TaskForm.cs
- ProgressBarRenderer.cs
- WebPartExportVerb.cs
- SmiMetaData.cs
- LabelAutomationPeer.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MenuAdapter.cs
- IpcClientChannel.cs
- DriveInfo.cs
- SchemaImporterExtensionElement.cs
- ResXBuildProvider.cs
- Transform3D.cs
- BindingOperations.cs
- HtmlControlPersistable.cs
- FusionWrap.cs
- NumberEdit.cs
- ProfileGroupSettings.cs
- GenericEnumConverter.cs
- SecurityKeyIdentifierClause.cs
- KnownBoxes.cs
- StateDesigner.cs
- BaseServiceProvider.cs
- fixedPageContentExtractor.cs
- MsmqIntegrationInputChannel.cs
- RuntimeCompatibilityAttribute.cs
- TrueReadOnlyCollection.cs
- EndOfStreamException.cs