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
- ZoneIdentityPermission.cs
- entityreference_tresulttype.cs
- SizeAnimation.cs
- hwndwrapper.cs
- FontConverter.cs
- ListViewCancelEventArgs.cs
- DataGridViewLinkColumn.cs
- LinkedList.cs
- Light.cs
- ListBindableAttribute.cs
- ModifiableIteratorCollection.cs
- TextEditorTables.cs
- ServiceProviders.cs
- WebPartAddingEventArgs.cs
- SrgsRuleRef.cs
- MethodExpr.cs
- ClassImporter.cs
- SQLBinary.cs
- DataColumnMapping.cs
- WebPartRestoreVerb.cs
- DataGridViewButtonCell.cs
- BamlBinaryReader.cs
- StreamUpdate.cs
- ObjectSpanRewriter.cs
- XmlHelper.cs
- Transform3DGroup.cs
- WebAdminConfigurationHelper.cs
- LabelDesigner.cs
- LinqDataSourceUpdateEventArgs.cs
- ResourceSet.cs
- HighlightVisual.cs
- MemberAssignmentAnalysis.cs
- HttpInputStream.cs
- ItemList.cs
- ImportFileRequest.cs
- SqlDataSourceStatusEventArgs.cs
- ServiceDesigner.cs
- DataTemplateSelector.cs
- XmlUtf8RawTextWriter.cs
- ModelChangedEventArgsImpl.cs
- ISFClipboardData.cs
- Transform.cs
- DesignerDataConnection.cs
- HtmlControlPersistable.cs
- AssemblyHash.cs
- PersonalizationStateInfo.cs
- HostProtectionPermission.cs
- EntityTypeEmitter.cs
- SqlRecordBuffer.cs
- XamlTypeMapper.cs
- CustomCategoryAttribute.cs
- SingleStorage.cs
- TcpServerChannel.cs
- HttpWebRequestElement.cs
- FunctionNode.cs
- SubMenuStyleCollection.cs
- HashHelper.cs
- NumberSubstitution.cs
- DataGridTable.cs
- WaitingCursor.cs
- SortQuery.cs
- SecurityBindingElement.cs
- KnownColorTable.cs
- GeometryModel3D.cs
- EdmScalarPropertyAttribute.cs
- NameNode.cs
- NamespaceQuery.cs
- WinHttpWebProxyFinder.cs
- PersistChildrenAttribute.cs
- EncodingDataItem.cs
- CompilerParameters.cs
- SelectionHighlightInfo.cs
- SmiXetterAccessMap.cs
- StoryFragments.cs
- VideoDrawing.cs
- PermissionListSet.cs
- FormsAuthenticationUser.cs
- OpacityConverter.cs
- StorageTypeMapping.cs
- SqlDataSourceFilteringEventArgs.cs
- HttpClientProtocol.cs
- NavigateEvent.cs
- CompoundFileIOPermission.cs
- MessageCredentialType.cs
- TdsRecordBufferSetter.cs
- BindingMemberInfo.cs
- TimeoutException.cs
- ComponentCodeDomSerializer.cs
- DesignTimeSiteMapProvider.cs
- clipboard.cs
- CustomPopupPlacement.cs
- TypeDependencyAttribute.cs
- EventSourceCreationData.cs
- StorageEntitySetMapping.cs
- ApplicationCommands.cs
- UIElement.cs
- PagedControl.cs
- HttpGetServerProtocol.cs
- EncodingTable.cs
- CacheOutputQuery.cs