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
- SqlDataSourceView.cs
- CqlParserHelpers.cs
- TraceEventCache.cs
- BuildProviderUtils.cs
- Verify.cs
- JsonEncodingStreamWrapper.cs
- ChildTable.cs
- TransformedBitmap.cs
- COM2IDispatchConverter.cs
- SqlClientWrapperSmiStream.cs
- RequestQueryProcessor.cs
- FacetChecker.cs
- httpserverutility.cs
- bindurihelper.cs
- ProtectedUri.cs
- HtmlSelect.cs
- HTTPNotFoundHandler.cs
- EmbeddedMailObjectsCollection.cs
- GridViewColumnHeader.cs
- RawTextInputReport.cs
- PerspectiveCamera.cs
- TypeConverterMarkupExtension.cs
- IisTraceWebEventProvider.cs
- ListViewTableCell.cs
- TextCompositionEventArgs.cs
- MetadataSource.cs
- DataGridCellsPanel.cs
- GregorianCalendarHelper.cs
- AttachmentCollection.cs
- EntityDataSourceContainerNameConverter.cs
- DateTimeFormat.cs
- ConfigurationPropertyAttribute.cs
- PasswordBoxAutomationPeer.cs
- Size3D.cs
- PolyBezierSegmentFigureLogic.cs
- ToolStripMenuItem.cs
- AttachInfo.cs
- HtmlTernaryTree.cs
- TemplateApplicationHelper.cs
- TextEffectResolver.cs
- DateTimeOffset.cs
- GrowingArray.cs
- StringStorage.cs
- SrgsText.cs
- FragmentQueryProcessor.cs
- VisualStyleTypesAndProperties.cs
- Comparer.cs
- NamespaceList.cs
- BehaviorDragDropEventArgs.cs
- MultipartIdentifier.cs
- TransactionManager.cs
- OutputCacheSettings.cs
- XmlSerializerVersionAttribute.cs
- CookieProtection.cs
- Rect.cs
- DataGridSortCommandEventArgs.cs
- BooleanKeyFrameCollection.cs
- EventSinkHelperWriter.cs
- ParallelTimeline.cs
- WsdlExporter.cs
- TextBox.cs
- Compilation.cs
- SafeEventLogWriteHandle.cs
- Model3DGroup.cs
- ThousandthOfEmRealDoubles.cs
- ConfigXmlComment.cs
- BamlTreeUpdater.cs
- Tuple.cs
- ScriptRef.cs
- GuidelineSet.cs
- Transform.cs
- UdpDiscoveryEndpointElement.cs
- NodeLabelEditEvent.cs
- RoleGroup.cs
- Delegate.cs
- Operators.cs
- HttpListenerRequest.cs
- ProtocolsSection.cs
- MsmqTransportReceiveParameters.cs
- CodeConstructor.cs
- BinaryFormatterWriter.cs
- TimeSpan.cs
- DataGridViewTextBoxColumn.cs
- SelfIssuedAuthRSACryptoProvider.cs
- XmlCharCheckingReader.cs
- DoubleAnimationClockResource.cs
- Size.cs
- XmlSchemaComplexContentRestriction.cs
- TextSchema.cs
- SynchronizingStream.cs
- ExecutedRoutedEventArgs.cs
- CodeTypeParameterCollection.cs
- AddIn.cs
- Point3DKeyFrameCollection.cs
- SizeF.cs
- AssociationSetMetadata.cs
- UnionExpr.cs
- BitmapCache.cs
- VarInfo.cs
- DiscoveryReferences.cs