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
- LoadedOrUnloadedOperation.cs
- InputManager.cs
- CngKey.cs
- SqlFactory.cs
- TableRowGroup.cs
- PerformanceCounterPermissionEntryCollection.cs
- MouseEventArgs.cs
- figurelengthconverter.cs
- Pair.cs
- ConfigurationStrings.cs
- DeclarativeCatalogPart.cs
- HtmlCommandAdapter.cs
- IdentityManager.cs
- XmlSchemaExternal.cs
- ExtensionDataReader.cs
- UInt16.cs
- X509InitiatorCertificateClientElement.cs
- DisableDpiAwarenessAttribute.cs
- ConfigurationManagerHelper.cs
- PnrpPermission.cs
- OdbcEnvironment.cs
- ProcessRequestArgs.cs
- PagesSection.cs
- NotifyInputEventArgs.cs
- ToolStripDropDownMenu.cs
- SplayTreeNode.cs
- SmiSettersStream.cs
- SendMailErrorEventArgs.cs
- MemoryMappedFile.cs
- TextProviderWrapper.cs
- PenLineJoinValidation.cs
- WriteLine.cs
- MediaTimeline.cs
- TimeoutValidationAttribute.cs
- StrongNamePublicKeyBlob.cs
- FormattedTextSymbols.cs
- HtmlTextBoxAdapter.cs
- HttpResponse.cs
- AesManaged.cs
- BuildResultCache.cs
- GroupBox.cs
- WebPartUserCapability.cs
- TableLayoutPanel.cs
- BooleanConverter.cs
- XmlByteStreamWriter.cs
- BufferBuilder.cs
- DetailsViewPagerRow.cs
- SqlDataSourceConnectionPanel.cs
- TranslateTransform.cs
- Size3D.cs
- UrlPath.cs
- TdsParserSessionPool.cs
- XPathExpr.cs
- DataRowChangeEvent.cs
- RuntimeCompatibilityAttribute.cs
- EntityDataSourceReferenceGroup.cs
- ValueChangedEventManager.cs
- SizeChangedInfo.cs
- HandleCollector.cs
- CheckBoxList.cs
- ListArgumentProvider.cs
- DrawingBrush.cs
- MenuItemStyleCollectionEditor.cs
- CollectionType.cs
- CryptoProvider.cs
- CharConverter.cs
- ConfigsHelper.cs
- XamlTemplateSerializer.cs
- ChangeNode.cs
- AttributeUsageAttribute.cs
- BooleanAnimationBase.cs
- TemplatedWizardStep.cs
- DescendantQuery.cs
- LineProperties.cs
- CompilerInfo.cs
- OleDbReferenceCollection.cs
- PropertyTabAttribute.cs
- SimpleExpression.cs
- AssemblyNameProxy.cs
- GridViewRowEventArgs.cs
- DelegateSerializationHolder.cs
- DesignerDeviceConfig.cs
- XmlStringTable.cs
- TypedDatasetGenerator.cs
- TraceLog.cs
- Token.cs
- ToolboxComponentsCreatedEventArgs.cs
- WindowsImpersonationContext.cs
- ReplyChannelBinder.cs
- DataGridViewCellStyleConverter.cs
- GrammarBuilderBase.cs
- WmlPanelAdapter.cs
- SerializationStore.cs
- SchemaElementLookUpTable.cs
- RawStylusSystemGestureInputReport.cs
- RegexWorker.cs
- WebPartZone.cs
- XamlBuildProvider.cs
- SocketAddress.cs
- AesCryptoServiceProvider.cs