Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SchemaCollectionCompiler.cs
- Int32EqualityComparer.cs
- IConvertible.cs
- HTTPNotFoundHandler.cs
- ResolveRequestResponseAsyncResult.cs
- DelegateArgumentReference.cs
- IxmlLineInfo.cs
- SectionInformation.cs
- ThreadPool.cs
- UnsafeNativeMethods.cs
- entityreference_tresulttype.cs
- FormsAuthenticationUserCollection.cs
- XslNumber.cs
- precedingsibling.cs
- SafeReversePInvokeHandle.cs
- DataGridViewHitTestInfo.cs
- ProfileGroupSettingsCollection.cs
- WebConvert.cs
- _RequestCacheProtocol.cs
- Base64Encoding.cs
- MissingSatelliteAssemblyException.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Point4DValueSerializer.cs
- TypeConverterHelper.cs
- EditorZone.cs
- Parameter.cs
- EntityDataSourceWrapper.cs
- HttpListenerRequest.cs
- sqlser.cs
- GroupQuery.cs
- Base64Encoder.cs
- WindowPattern.cs
- ConstraintManager.cs
- DataSourceControlBuilder.cs
- TreeViewDesigner.cs
- AssemblyNameUtility.cs
- SequenceNumber.cs
- TreeIterators.cs
- WindowManager.cs
- DependencyObjectProvider.cs
- WsdlInspector.cs
- CorrelationKey.cs
- RoleGroupCollection.cs
- WebPartConnectionsConfigureVerb.cs
- CellQuery.cs
- HebrewCalendar.cs
- DataKey.cs
- ResourceDefaultValueAttribute.cs
- WebBrowserHelper.cs
- MILUtilities.cs
- HttpApplication.cs
- RuleProcessor.cs
- XmlComplianceUtil.cs
- Expander.cs
- UIAgentAsyncBeginRequest.cs
- TCPListener.cs
- WebBrowserNavigatedEventHandler.cs
- WebSysDisplayNameAttribute.cs
- InlinedAggregationOperatorEnumerator.cs
- CustomAttribute.cs
- SemanticBasicElement.cs
- DataControlExtensions.cs
- LineBreakRecord.cs
- TableCellCollection.cs
- DoubleMinMaxAggregationOperator.cs
- SessionPageStatePersister.cs
- FocusChangedEventArgs.cs
- TypeBuilder.cs
- CalendarDayButton.cs
- WebServiceReceive.cs
- HttpWebRequestElement.cs
- ListView.cs
- SharedConnectionInfo.cs
- EventWaitHandle.cs
- CodeParameterDeclarationExpressionCollection.cs
- Predicate.cs
- SoapAttributeAttribute.cs
- SystemResources.cs
- InsufficientMemoryException.cs
- Transform3DGroup.cs
- WmlLiteralTextAdapter.cs
- LinqDataSourceView.cs
- MembershipSection.cs
- FamilyMap.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- FlowDocument.cs
- GeneralTransform3DGroup.cs
- Style.cs
- BuilderInfo.cs
- SupportsEventValidationAttribute.cs
- CreateUserWizardStep.cs
- RemotingConfiguration.cs
- InsufficientMemoryException.cs
- BitmapEffectGroup.cs
- InheritanceUI.cs
- RelationalExpressions.cs
- TaiwanLunisolarCalendar.cs
- WebPartMenu.cs
- ScrollProviderWrapper.cs
- Int64.cs