Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Collections / Generic / KeyNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- WSHttpBinding.cs
- DrawingCollection.cs
- Char.cs
- AssemblyAssociatedContentFileAttribute.cs
- DispatcherOperation.cs
- DataMemberFieldConverter.cs
- XPathExpr.cs
- MultiSelectRootGridEntry.cs
- AutoResizedEvent.cs
- ZipIOExtraFieldPaddingElement.cs
- MetadataConversionError.cs
- MSAAEventDispatcher.cs
- CngAlgorithm.cs
- FunctionOverloadResolver.cs
- IPCCacheManager.cs
- ValueQuery.cs
- CodeGen.cs
- ProvidersHelper.cs
- Int16Animation.cs
- VersionUtil.cs
- AuthenticationService.cs
- X509SecurityTokenAuthenticator.cs
- ToolStripPanelRow.cs
- PostBackTrigger.cs
- ResourceDescriptionAttribute.cs
- MarginCollapsingState.cs
- CommonXSendMessage.cs
- FileLogRecordEnumerator.cs
- AssemblyCache.cs
- Errors.cs
- ResizingMessageFilter.cs
- OdbcErrorCollection.cs
- MultiBinding.cs
- StreamGeometry.cs
- Tile.cs
- IConvertible.cs
- DynamicILGenerator.cs
- XpsSerializerFactory.cs
- DynamicDiscoveryDocument.cs
- WhitespaceRuleLookup.cs
- Rfc4050KeyFormatter.cs
- DataBoundLiteralControl.cs
- BuildProviderAppliesToAttribute.cs
- UiaCoreApi.cs
- EpmContentSerializer.cs
- PageDeviceFont.cs
- ConstraintCollection.cs
- EmbeddedMailObject.cs
- CustomValidator.cs
- DataSourceCache.cs
- CopyOnWriteList.cs
- TextBounds.cs
- ReliableInputConnection.cs
- ScopelessEnumAttribute.cs
- TreeViewItemAutomationPeer.cs
- SecureConversationServiceCredential.cs
- SizeConverter.cs
- LinqToSqlWrapper.cs
- BufferedStream.cs
- FormViewPagerRow.cs
- EntityDataSourceDataSelection.cs
- WindowsStreamSecurityBindingElement.cs
- WebServiceData.cs
- CodeTypeMemberCollection.cs
- RangeValuePattern.cs
- UTF7Encoding.cs
- OneToOneMappingSerializer.cs
- OdbcDataReader.cs
- __TransparentProxy.cs
- hresults.cs
- InputBinder.cs
- DataSourceXmlClassAttribute.cs
- GatewayDefinition.cs
- SqlClientFactory.cs
- GetIndexBinder.cs
- UIElement3DAutomationPeer.cs
- BitmapInitialize.cs
- ContentTextAutomationPeer.cs
- List.cs
- IDQuery.cs
- CodeExpressionStatement.cs
- PropertyToken.cs
- PeerService.cs
- DeploymentSection.cs
- EventData.cs
- AudioFileOut.cs
- WindowsIdentity.cs
- StylusPointProperties.cs
- MemberMaps.cs
- ApplicationSecurityManager.cs
- SqlClientPermission.cs
- SelectedGridItemChangedEvent.cs
- NullReferenceException.cs
- BamlLocalizableResource.cs
- RoutingConfiguration.cs
- CombinedTcpChannel.cs
- StrokeCollectionDefaultValueFactory.cs
- CodeCommentStatement.cs
- StrokeCollection.cs
- VirtualizedContainerService.cs