Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ToolStripOverflowButton.cs
- DataRelation.cs
- HandlerWithFactory.cs
- CanonicalFontFamilyReference.cs
- SafeFileMapViewHandle.cs
- FileLogRecordStream.cs
- AmbientLight.cs
- JsonCollectionDataContract.cs
- CodePageEncoding.cs
- Primitive.cs
- AttachedPropertyInfo.cs
- GroupAggregateExpr.cs
- TextView.cs
- EditingCoordinator.cs
- ContextMenuService.cs
- LocatorManager.cs
- PropertyChangingEventArgs.cs
- TextBoxBase.cs
- HandlerMappingMemo.cs
- InitializerFacet.cs
- BeginEvent.cs
- Timeline.cs
- QuaternionConverter.cs
- CodeParameterDeclarationExpressionCollection.cs
- DateTimeOffsetConverter.cs
- WinFormsComponentEditor.cs
- InstanceContextManager.cs
- WebEventCodes.cs
- EntityTypeEmitter.cs
- BaseUriWithWildcard.cs
- AppDomainInfo.cs
- ConnectionPoint.cs
- SamlEvidence.cs
- MasterPageParser.cs
- EntityWrapper.cs
- __Filters.cs
- SigningDialog.cs
- PermissionAttributes.cs
- XmlUtil.cs
- XPathScanner.cs
- ListViewCommandEventArgs.cs
- ContextBase.cs
- UnicastIPAddressInformationCollection.cs
- SoapSchemaMember.cs
- ActivityCodeGenerator.cs
- ColumnTypeConverter.cs
- LoginViewDesigner.cs
- SID.cs
- ImageAnimator.cs
- Size3DValueSerializer.cs
- UrlMappingCollection.cs
- ContextMarshalException.cs
- OracleString.cs
- PrintPreviewDialog.cs
- CustomAttributeBuilder.cs
- UInt64Storage.cs
- BitmapMetadataBlob.cs
- ReceiveParametersContent.cs
- CompilerInfo.cs
- GridViewSelectEventArgs.cs
- IResourceProvider.cs
- FlowLayoutPanel.cs
- Pkcs9Attribute.cs
- TrackingProfileCache.cs
- MonitorWrapper.cs
- InstanceCollisionException.cs
- PropertyValidationContext.cs
- LinearQuaternionKeyFrame.cs
- SqlMetaData.cs
- TemplateBuilder.cs
- DependencyProperty.cs
- CommonGetThemePartSize.cs
- StorageAssociationSetMapping.cs
- SamlAuthorizationDecisionClaimResource.cs
- SubclassTypeValidatorAttribute.cs
- FileSystemEventArgs.cs
- WorkflowApplicationCompletedEventArgs.cs
- NavigationWindowAutomationPeer.cs
- HwndSourceParameters.cs
- ObjectCloneHelper.cs
- IssuanceLicense.cs
- ListQueryResults.cs
- MediaElementAutomationPeer.cs
- HealthMonitoringSection.cs
- RemotingException.cs
- QueryableDataSourceView.cs
- SQLBoolean.cs
- NumericExpr.cs
- ToolStripRenderer.cs
- RestHandlerFactory.cs
- DependencyPropertyConverter.cs
- WinInetCache.cs
- RegexNode.cs
- ResourcePermissionBaseEntry.cs
- PersonalizationStateQuery.cs
- LocalizationParserHooks.cs
- RectangleHotSpot.cs
- XmlLinkedNode.cs
- ScriptBehaviorDescriptor.cs
- Figure.cs