Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DefaultTextStoreTextComposition.cs
- loginstatus.cs
- InfoCardProofToken.cs
- PEFileReader.cs
- ObjectDataSourceView.cs
- Literal.cs
- FrameworkPropertyMetadata.cs
- MediaSystem.cs
- MessageSecurityVersion.cs
- FileDialogPermission.cs
- IRCollection.cs
- ScriptResourceAttribute.cs
- OrderToken.cs
- OutputCacheSection.cs
- SystemDiagnosticsSection.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- Style.cs
- AnnotationComponentManager.cs
- ItemCollectionEditor.cs
- GenericsInstances.cs
- Publisher.cs
- RubberbandSelector.cs
- HttpCachePolicyElement.cs
- InfiniteIntConverter.cs
- NotImplementedException.cs
- BooleanFunctions.cs
- CacheDependency.cs
- OrderedDictionaryStateHelper.cs
- Relationship.cs
- TransformGroup.cs
- ScrollEventArgs.cs
- Stylus.cs
- CodeExpressionStatement.cs
- PhysicalAddress.cs
- DependencyPropertyConverter.cs
- Expression.DebuggerProxy.cs
- ParserStack.cs
- OdbcStatementHandle.cs
- ExecutedRoutedEventArgs.cs
- CustomAttribute.cs
- CustomError.cs
- TextLineBreak.cs
- EntityAdapter.cs
- StdValidatorsAndConverters.cs
- BitmapDownload.cs
- _TransmitFileOverlappedAsyncResult.cs
- QilSortKey.cs
- RadioButtonFlatAdapter.cs
- DetailsView.cs
- NamespaceCollection.cs
- SetterBaseCollection.cs
- PersistenceContextEnlistment.cs
- InputManager.cs
- KnownTypeAttribute.cs
- ChameleonKey.cs
- PublishLicense.cs
- ChangeInterceptorAttribute.cs
- XDRSchema.cs
- FixedFlowMap.cs
- ClaimTypeRequirement.cs
- ChannelParameterCollection.cs
- Effect.cs
- PropertyNames.cs
- Ray3DHitTestResult.cs
- Transform.cs
- SocketException.cs
- PreservationFileWriter.cs
- MultitargetingHelpers.cs
- MediaElementAutomationPeer.cs
- CacheSection.cs
- ShapingWorkspace.cs
- GroupDescription.cs
- ControlUtil.cs
- QueryContinueDragEvent.cs
- HtmlControl.cs
- CertificateManager.cs
- XamlBuildTaskServices.cs
- OrderedEnumerableRowCollection.cs
- ViewDesigner.cs
- StrokeNodeOperations.cs
- DocumentViewerBase.cs
- HttpListenerContext.cs
- DiscoveryInnerClientAdhoc11.cs
- SoapMessage.cs
- SessionStateContainer.cs
- XmlSchemaType.cs
- ProfileProvider.cs
- Stroke2.cs
- Vector3DAnimation.cs
- PathTooLongException.cs
- Inline.cs
- DesignerTextBoxAdapter.cs
- IUnknownConstantAttribute.cs
- SapiAttributeParser.cs
- TextTreeFixupNode.cs
- InputLanguageSource.cs
- InvalidOleVariantTypeException.cs
- XPathExpr.cs
- FocusManager.cs
- EnterpriseServicesHelper.cs