Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MemberRestriction.cs
- MDIWindowDialog.cs
- FaultBookmark.cs
- _Events.cs
- DecoderFallbackWithFailureFlag.cs
- StateDesigner.Layouts.cs
- Roles.cs
- ReferenceConverter.cs
- cache.cs
- OleDbMetaDataFactory.cs
- GridViewPageEventArgs.cs
- DesignerTransaction.cs
- Int32.cs
- FormCollection.cs
- CodeDomExtensionMethods.cs
- SetterBaseCollection.cs
- IsolatedStorageFile.cs
- NetCodeGroup.cs
- GridProviderWrapper.cs
- ValidatingPropertiesEventArgs.cs
- ComplexTypeEmitter.cs
- GenericUriParser.cs
- BindingsSection.cs
- CacheSection.cs
- OverrideMode.cs
- RoleGroup.cs
- CodeVariableReferenceExpression.cs
- HtmlControl.cs
- SqlWriter.cs
- PageThemeBuildProvider.cs
- SchemaDeclBase.cs
- EventPrivateKey.cs
- PropertyStore.cs
- TreeNodeConverter.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- TargetControlTypeCache.cs
- ImageMapEventArgs.cs
- RangeValuePatternIdentifiers.cs
- TransformGroup.cs
- ValueConversionAttribute.cs
- WebResponse.cs
- ObjectKeyFrameCollection.cs
- DefaultObjectSerializer.cs
- WebPartZoneAutoFormat.cs
- ByteAnimation.cs
- Transform3D.cs
- CacheRequest.cs
- WebControlsSection.cs
- SplitterCancelEvent.cs
- DesignerTransactionCloseEvent.cs
- XmlDataSourceNodeDescriptor.cs
- OleDbException.cs
- DataRow.cs
- WmlPageAdapter.cs
- BulletedListEventArgs.cs
- Delegate.cs
- RowUpdatingEventArgs.cs
- SecurityHelper.cs
- ViewManager.cs
- WindowsMenu.cs
- MetadataUtil.cs
- GeometryCombineModeValidation.cs
- XmlWriter.cs
- SecurityChannelListener.cs
- CompiledXpathExpr.cs
- FontStretch.cs
- DefaultExpressionVisitor.cs
- BmpBitmapDecoder.cs
- Sql8ExpressionRewriter.cs
- Positioning.cs
- TreeView.cs
- TileModeValidation.cs
- DesigntimeLicenseContextSerializer.cs
- UpdateTranslator.cs
- Substitution.cs
- ProxyWebPartManager.cs
- CqlQuery.cs
- RelatedPropertyManager.cs
- QueueAccessMode.cs
- EventData.cs
- MapPathBasedVirtualPathProvider.cs
- XmlAnyAttributeAttribute.cs
- UriSchemeKeyedCollection.cs
- DateTimeFormatInfo.cs
- MutexSecurity.cs
- SecurityDescriptor.cs
- ApplicationTrust.cs
- EntityDataSourceWizardForm.cs
- CodeEventReferenceExpression.cs
- Codec.cs
- DataGridViewCellStyleConverter.cs
- XmlUrlResolver.cs
- TextRangeBase.cs
- XmlReader.cs
- JoinCqlBlock.cs
- SettingsAttributes.cs
- DecimalFormatter.cs
- WpfGeneratedKnownProperties.cs
- WebReferencesBuildProvider.cs
- PathNode.cs