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
- EntityDataSourceUtil.cs
- DateTimeValueSerializerContext.cs
- AutoCompleteStringCollection.cs
- InternalDispatchObject.cs
- InputScopeConverter.cs
- Timer.cs
- GroupByExpressionRewriter.cs
- Soap.cs
- SliderAutomationPeer.cs
- ContainerParagraph.cs
- ToolStrip.cs
- CustomWebEventKey.cs
- FunctionDetailsReader.cs
- Serializer.cs
- ListSortDescription.cs
- TextRunProperties.cs
- DoubleStorage.cs
- MenuCommandsChangedEventArgs.cs
- BitmapMetadataBlob.cs
- SqlBulkCopy.cs
- ItemMap.cs
- Point.cs
- ExtendedProperty.cs
- TemplatedWizardStep.cs
- COM2ExtendedUITypeEditor.cs
- UnknownBitmapEncoder.cs
- PrivateFontCollection.cs
- CornerRadiusConverter.cs
- RectIndependentAnimationStorage.cs
- Win32.cs
- SplashScreen.cs
- DataQuery.cs
- WebServiceParameterData.cs
- PathGradientBrush.cs
- ZipIOExtraField.cs
- OracleLob.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- COM2PictureConverter.cs
- PopupEventArgs.cs
- InputLanguageManager.cs
- MemberCollection.cs
- SpotLight.cs
- XmlIlGenerator.cs
- ExplicitDiscriminatorMap.cs
- OleDbCommandBuilder.cs
- DocumentPage.cs
- UnsettableComboBox.cs
- Empty.cs
- NotSupportedException.cs
- DateTimeOffsetConverter.cs
- CryptoApi.cs
- MachineKey.cs
- AutomationEventArgs.cs
- SslStream.cs
- TrackingWorkflowEventArgs.cs
- Int32.cs
- ProviderConnectionPointCollection.cs
- XmlCharCheckingReader.cs
- GroupBoxAutomationPeer.cs
- TextClipboardData.cs
- SafeEventHandle.cs
- CompareValidator.cs
- GuidConverter.cs
- _NestedSingleAsyncResult.cs
- HostVisual.cs
- ReversePositionQuery.cs
- SplineKeyFrames.cs
- IImplicitResourceProvider.cs
- CompositeControl.cs
- MatrixTransform3D.cs
- prompt.cs
- PerformanceCountersElement.cs
- ContentElement.cs
- ApplicationBuildProvider.cs
- ListInitExpression.cs
- LocationSectionRecord.cs
- CompositeCollectionView.cs
- AssemblyResourceLoader.cs
- TextBox.cs
- TabletDevice.cs
- LazyInitializer.cs
- AdministrationHelpers.cs
- ExpressionBindingCollection.cs
- EventDescriptorCollection.cs
- DataViewSettingCollection.cs
- FixedPage.cs
- CacheEntry.cs
- WebServiceHandler.cs
- ToolboxDataAttribute.cs
- JsonClassDataContract.cs
- ContentType.cs
- LinkArea.cs
- HtmlInputPassword.cs
- FormatterServices.cs
- RecommendedAsConfigurableAttribute.cs
- HostedTransportConfigurationManager.cs
- InternalConfigEventArgs.cs
- AllMembershipCondition.cs
- ToolStripPanelCell.cs
- ProcessModule.cs