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
- QueryContinueDragEvent.cs
- ForwardPositionQuery.cs
- ColumnBinding.cs
- X509Certificate2Collection.cs
- PackUriHelper.cs
- KeyInfo.cs
- RegexCode.cs
- ChannelBinding.cs
- FontNamesConverter.cs
- XmlCharacterData.cs
- RIPEMD160Managed.cs
- BulletChrome.cs
- VisualBasicDesignerHelper.cs
- StaticFileHandler.cs
- SchemaMapping.cs
- UTF8Encoding.cs
- SchemaImporterExtension.cs
- SingletonConnectionReader.cs
- LowerCaseStringConverter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ReferenceEqualityComparer.cs
- HMACSHA384.cs
- Ray3DHitTestResult.cs
- ReadOnlyHierarchicalDataSource.cs
- GatewayIPAddressInformationCollection.cs
- SqlDataSourceRefreshSchemaForm.cs
- TypedReference.cs
- QualifiedCellIdBoolean.cs
- RunWorkerCompletedEventArgs.cs
- __ConsoleStream.cs
- CompilationSection.cs
- InvokeMethodActivityDesigner.cs
- HttpFileCollectionBase.cs
- EncoderParameters.cs
- DataObjectAttribute.cs
- EntityClientCacheKey.cs
- ProfileGroupSettings.cs
- HttpCookieCollection.cs
- RuleValidation.cs
- ContentTextAutomationPeer.cs
- Propagator.Evaluator.cs
- GPRECTF.cs
- ControlFilterExpression.cs
- AdRotatorDesigner.cs
- CalendarDataBindingHandler.cs
- LockRecoveryTask.cs
- TextBlock.cs
- AudioFormatConverter.cs
- IsolatedStorageException.cs
- ProjectionCamera.cs
- SafeLibraryHandle.cs
- GridViewColumnHeader.cs
- ParameterCollection.cs
- SQLGuidStorage.cs
- Models.cs
- XmlSchemaAttribute.cs
- DrawingAttributeSerializer.cs
- CatalogPartCollection.cs
- XPathNodeInfoAtom.cs
- XomlCompilerHelpers.cs
- PropertyConverter.cs
- RowToFieldTransformer.cs
- SamlConstants.cs
- SBCSCodePageEncoding.cs
- ProxyElement.cs
- ShutDownListener.cs
- DesignTable.cs
- EntitySetBase.cs
- ResourceExpressionEditorSheet.cs
- SqlDataSourceView.cs
- WebScriptMetadataFormatter.cs
- IIS7UserPrincipal.cs
- SerialPort.cs
- MetafileHeader.cs
- WebReferenceOptions.cs
- RectangleHotSpot.cs
- nulltextnavigator.cs
- ConnectionProviderAttribute.cs
- NamedElement.cs
- PenContext.cs
- SvcFileManager.cs
- DataGridItemEventArgs.cs
- VBIdentifierDesigner.xaml.cs
- Utilities.cs
- GridViewUpdatedEventArgs.cs
- TemplateFactory.cs
- ActivityExecutionFilter.cs
- DataGridComboBoxColumn.cs
- EntryWrittenEventArgs.cs
- Random.cs
- InputScopeAttribute.cs
- AuthStoreRoleProvider.cs
- XmlLoader.cs
- EmptyControlCollection.cs
- TypeHelper.cs
- WrappingXamlSchemaContext.cs
- HitTestWithPointDrawingContextWalker.cs
- Trigger.cs
- XpsSerializationManager.cs
- ObjectReaderCompiler.cs