Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Collections / Generic / KeyNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- TryCatch.cs
- CreateRefExpr.cs
- AttributeUsageAttribute.cs
- FreezableCollection.cs
- ADMembershipProvider.cs
- ToolTipService.cs
- CqlIdentifiers.cs
- BindingNavigatorDesigner.cs
- PerformanceCountersElement.cs
- Mappings.cs
- ElementHostPropertyMap.cs
- DataGridTextBoxColumn.cs
- CheckBoxList.cs
- AssociationTypeEmitter.cs
- DesignTimeTemplateParser.cs
- ILGenerator.cs
- PatternMatcher.cs
- NativeCppClassAttribute.cs
- RoleServiceManager.cs
- X509Utils.cs
- RemotingServices.cs
- ScaleTransform3D.cs
- SchemaNamespaceManager.cs
- WaitForChangedResult.cs
- VectorAnimationBase.cs
- TemplatedWizardStep.cs
- Tool.cs
- DllHostInitializer.cs
- String.cs
- ExtractedStateEntry.cs
- RuntimeWrappedException.cs
- RoleManagerEventArgs.cs
- CustomTrackingRecord.cs
- WorkflowInstanceProvider.cs
- SolidColorBrush.cs
- TextParagraph.cs
- TypedTableBase.cs
- NavigationFailedEventArgs.cs
- GridItemCollection.cs
- BuildProviderCollection.cs
- TypeRestriction.cs
- Int32AnimationBase.cs
- CommandHelpers.cs
- ObjectDataSourceEventArgs.cs
- WebPartConnectionCollection.cs
- AttributeConverter.cs
- ContractMethodParameterInfo.cs
- ScrollEventArgs.cs
- CfgRule.cs
- Rotation3D.cs
- TypeSystem.cs
- ShapingWorkspace.cs
- SeparatorAutomationPeer.cs
- PersonalizationAdministration.cs
- Single.cs
- PerformanceCounterPermissionEntry.cs
- TabItem.cs
- SemanticTag.cs
- ColumnMapTranslator.cs
- SpecularMaterial.cs
- BufferModeSettings.cs
- MultiBindingExpression.cs
- CodeAccessPermission.cs
- SoapCodeExporter.cs
- WebPartCatalogCloseVerb.cs
- SequenceDesigner.cs
- OrderedDictionary.cs
- ButtonDesigner.cs
- DoubleStorage.cs
- BamlLocalizationDictionary.cs
- Authorization.cs
- Evidence.cs
- Journaling.cs
- DataServiceResponse.cs
- PersonalizationProviderHelper.cs
- SynchronizedPool.cs
- XmlDocumentType.cs
- RequiredAttributeAttribute.cs
- JournalEntry.cs
- DetailsViewRowCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- WindowInteractionStateTracker.cs
- ObsoleteAttribute.cs
- BroadcastEventHelper.cs
- Hash.cs
- DispatcherFrame.cs
- WebPartZoneDesigner.cs
- MenuItemBinding.cs
- StoreItemCollection.Loader.cs
- RoleBoolean.cs
- Point3DConverter.cs
- KeyGestureConverter.cs
- Stack.cs
- RectangleF.cs
- HttpListener.cs
- XmlSchemaAnnotation.cs
- BoundsDrawingContextWalker.cs
- ThemeableAttribute.cs
- DataGridViewLinkCell.cs
- ListViewDataItem.cs