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
- ValidationEventArgs.cs
- GridViewColumnCollection.cs
- HeaderUtility.cs
- UserControl.cs
- StructuredTypeEmitter.cs
- ManagedFilter.cs
- DataSourceControl.cs
- NativeWrapper.cs
- ColumnTypeConverter.cs
- Vector3DAnimation.cs
- EntityDataSourceDataSelectionPanel.cs
- BinaryMessageEncodingBindingElement.cs
- WindowsFormsSynchronizationContext.cs
- EmptyStringExpandableObjectConverter.cs
- KeyEventArgs.cs
- OutputCacheSettingsSection.cs
- ListBindingHelper.cs
- ClientOperationFormatterProvider.cs
- BindingsCollection.cs
- DataBoundControlParameterTarget.cs
- DocumentProperties.cs
- FormViewActionList.cs
- _OSSOCK.cs
- WorkflowTraceTransfer.cs
- ActivityExecutionWorkItem.cs
- Brush.cs
- ByteKeyFrameCollection.cs
- PolyQuadraticBezierSegment.cs
- Win32PrintDialog.cs
- SocketInformation.cs
- ADConnectionHelper.cs
- ToolStripRendererSwitcher.cs
- FormsAuthenticationUser.cs
- invalidudtexception.cs
- FtpRequestCacheValidator.cs
- MiniLockedBorderGlyph.cs
- KnownTypeDataContractResolver.cs
- PrePostDescendentsWalker.cs
- SecurityResources.cs
- CodeConstructor.cs
- sqlpipe.cs
- SignedXml.cs
- DiscreteKeyFrames.cs
- RawStylusInput.cs
- GPPOINTF.cs
- MarkupExtensionParser.cs
- DataFormats.cs
- CodeSnippetCompileUnit.cs
- SerializationStore.cs
- TextTreeText.cs
- Rectangle.cs
- SiteMapPath.cs
- MetadataReference.cs
- ListenerElementsCollection.cs
- InputScopeManager.cs
- basenumberconverter.cs
- PackWebRequestFactory.cs
- PathFigure.cs
- DesignerDataView.cs
- ObjectView.cs
- ExclusiveNamedPipeTransportManager.cs
- nulltextcontainer.cs
- DbParameterCollectionHelper.cs
- Int16KeyFrameCollection.cs
- DashStyles.cs
- DocumentViewerConstants.cs
- MsmqIntegrationReceiveParameters.cs
- ThreadNeutralSemaphore.cs
- BindingCompleteEventArgs.cs
- externdll.cs
- Queue.cs
- PolicyStatement.cs
- Attachment.cs
- XmlRawWriter.cs
- BidOverLoads.cs
- StatusStrip.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DataGridCheckBoxColumn.cs
- RectangleGeometry.cs
- Ipv6Element.cs
- TextRangeEditTables.cs
- CodeCastExpression.cs
- SwitchLevelAttribute.cs
- FileReader.cs
- FlowDocumentView.cs
- BitmapFrameDecode.cs
- TemplatedControlDesigner.cs
- AttributeEmitter.cs
- NameValuePair.cs
- TraceContextRecord.cs
- TypeLoadException.cs
- XmlSerializationWriter.cs
- DbDataAdapter.cs
- DynamicPropertyReader.cs
- DateTimeFormatInfoScanner.cs
- SmtpSection.cs
- DeviceSpecificChoiceCollection.cs
- PropertyTab.cs
- SubMenuStyle.cs
- StringKeyFrameCollection.cs