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
- TransactionBridgeSection.cs
- ZeroOpNode.cs
- ModuleBuilderData.cs
- WebContext.cs
- EndpointAddress.cs
- Stylus.cs
- GlyphElement.cs
- ServiceBuildProvider.cs
- ConfigXmlAttribute.cs
- SqlDataRecord.cs
- Style.cs
- PropertyKey.cs
- Filter.cs
- BitmapImage.cs
- GridViewRowCollection.cs
- WebHostedComPlusServiceHost.cs
- RoutingService.cs
- CodeParameterDeclarationExpression.cs
- ToolStripSeparatorRenderEventArgs.cs
- VariableQuery.cs
- SelectionEditingBehavior.cs
- TableRow.cs
- Timer.cs
- ReadOnlyDataSourceView.cs
- EncryptedData.cs
- CodeMethodInvokeExpression.cs
- EntityDataSourceEntityTypeFilterItem.cs
- DataTemplateSelector.cs
- Container.cs
- FormViewInsertedEventArgs.cs
- DataMemberConverter.cs
- InvariantComparer.cs
- SqlUserDefinedAggregateAttribute.cs
- NavigationWindowAutomationPeer.cs
- DataRelationPropertyDescriptor.cs
- ImageBrush.cs
- MetafileHeaderEmf.cs
- EventPropertyMap.cs
- SiteMapPath.cs
- DbProviderManifest.cs
- TraceUtility.cs
- LambdaCompiler.ControlFlow.cs
- ClientTarget.cs
- BridgeDataRecord.cs
- figurelengthconverter.cs
- OleDbTransaction.cs
- AgileSafeNativeMemoryHandle.cs
- IOThreadScheduler.cs
- OutputWindow.cs
- PropertyMetadata.cs
- Cursor.cs
- _ConnectStream.cs
- LocatorBase.cs
- MailAddressCollection.cs
- RuntimeVariablesExpression.cs
- EditorPartCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- PolicyStatement.cs
- MenuItem.cs
- PageThemeParser.cs
- HeaderedContentControl.cs
- FormViewUpdateEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- DataStreamFromComStream.cs
- CharacterString.cs
- OleDbStruct.cs
- _Events.cs
- IndentTextWriter.cs
- CollectionConverter.cs
- UntypedNullExpression.cs
- FontConverter.cs
- DataListCommandEventArgs.cs
- ClientSideQueueItem.cs
- Win32Native.cs
- UnionCqlBlock.cs
- OleDbTransaction.cs
- CatalogPartChrome.cs
- RectKeyFrameCollection.cs
- ProcessModuleCollection.cs
- TrackingProfileSerializer.cs
- XmlSchemaException.cs
- ManualResetEvent.cs
- DesignerTransaction.cs
- Filter.cs
- StorageEntityTypeMapping.cs
- IndexedString.cs
- CommentEmitter.cs
- QuestionEventArgs.cs
- HeaderLabel.cs
- PerformanceCounterPermissionAttribute.cs
- coordinatorfactory.cs
- PropertyGrid.cs
- BitmapEncoder.cs
- StyleCollectionEditor.cs
- XmlSchemaSimpleType.cs
- Funcletizer.cs
- ToolStripSettings.cs
- InputLanguageCollection.cs
- HandlerFactoryWrapper.cs
- BaseTemplateBuildProvider.cs