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
- SharedDp.cs
- HitTestWithPointDrawingContextWalker.cs
- xamlnodes.cs
- InternalCache.cs
- RewritingValidator.cs
- RelationshipDetailsCollection.cs
- TargetFrameworkUtil.cs
- WindowsComboBox.cs
- CreateUserWizard.cs
- RulePatternOps.cs
- PropertyInfo.cs
- PreloadedPackages.cs
- PerformanceCountersElement.cs
- DataColumnMapping.cs
- listitem.cs
- SafeProcessHandle.cs
- WindowsFormsLinkLabel.cs
- HiddenFieldPageStatePersister.cs
- ByteConverter.cs
- CancellationHandler.cs
- WebExceptionStatus.cs
- OnOperation.cs
- XamlReaderConstants.cs
- FieldMetadata.cs
- SimpleBitVector32.cs
- Storyboard.cs
- Panel.cs
- XmlParserContext.cs
- Resources.Designer.cs
- RepeaterItemEventArgs.cs
- CodeTypeReference.cs
- bindurihelper.cs
- ValidatorCompatibilityHelper.cs
- ToolboxItemAttribute.cs
- LambdaValue.cs
- DefaultShape.cs
- Hex.cs
- CanonicalFormWriter.cs
- InitializerFacet.cs
- HostSecurityManager.cs
- EFColumnProvider.cs
- Int32EqualityComparer.cs
- FormViewUpdateEventArgs.cs
- InvokeProviderWrapper.cs
- SchemaImporterExtensionElement.cs
- SecurityContextTokenValidationException.cs
- PropertyInformation.cs
- SmtpReplyReader.cs
- _ConnectOverlappedAsyncResult.cs
- ListViewTableCell.cs
- AttributeEmitter.cs
- MappingMetadataHelper.cs
- ProcessInputEventArgs.cs
- Models.cs
- RuntimeWrappedException.cs
- figurelengthconverter.cs
- KeyInstance.cs
- ObjectDataSourceView.cs
- DLinqDataModelProvider.cs
- LambdaExpression.cs
- DrawingContextWalker.cs
- BitmapFrame.cs
- CreateUserErrorEventArgs.cs
- PointValueSerializer.cs
- MaskedTextBox.cs
- MD5.cs
- SystemDiagnosticsSection.cs
- IPEndPoint.cs
- CodeAccessSecurityEngine.cs
- Thickness.cs
- AnonymousIdentificationSection.cs
- ScrollChrome.cs
- UserMapPath.cs
- SymbolTable.cs
- PathGeometry.cs
- Quaternion.cs
- TreeViewHitTestInfo.cs
- OpenFileDialog.cs
- SchemaImporterExtensionElementCollection.cs
- EventTrigger.cs
- DispatchChannelSink.cs
- ServiceModelReg.cs
- FramingFormat.cs
- SoundPlayerAction.cs
- RowTypePropertyElement.cs
- PermissionSet.cs
- Formatter.cs
- ClrProviderManifest.cs
- DecoderNLS.cs
- XmlAtomErrorReader.cs
- regiisutil.cs
- DependencyProperty.cs
- MapPathBasedVirtualPathProvider.cs
- TableLayoutStyle.cs
- NamedElement.cs
- IPAddressCollection.cs
- DependencyObjectPropertyDescriptor.cs
- FixedSOMTable.cs
- iisPickupDirectory.cs
- ElementUtil.cs