Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / IndexOutOfRangeException.cs / 1 / IndexOutOfRangeException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: IndexOutOfRangeException
**
**
** Purpose: Exception class for invalid array indices.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public sealed class IndexOutOfRangeException : SystemException {
public IndexOutOfRangeException()
: base(Environment.GetResourceString("Arg_IndexOutOfRangeException")) {
SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE);
}
public IndexOutOfRangeException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE);
}
public IndexOutOfRangeException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE);
}
internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SingleTagSectionHandler.cs
- InvokeMethodActivity.cs
- EntityDataSourceMemberPath.cs
- DataGridViewCellStyle.cs
- MultiBindingExpression.cs
- LookupBindingPropertiesAttribute.cs
- SafeProcessHandle.cs
- cookiecollection.cs
- StylesEditorDialog.cs
- SmtpFailedRecipientsException.cs
- ServiceMemoryGates.cs
- FileDialog_Vista_Interop.cs
- WindowsListViewItem.cs
- ProcessThreadCollection.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ToolboxItem.cs
- DataPagerField.cs
- ModelChangedEventArgsImpl.cs
- DBSchemaTable.cs
- ClientRoleProvider.cs
- Html32TextWriter.cs
- InheritanceAttribute.cs
- WorkflowRuntimeEndpoint.cs
- TdsEnums.cs
- HwndTarget.cs
- MenuItem.cs
- RowType.cs
- ArraySortHelper.cs
- PreviewKeyDownEventArgs.cs
- BaseResourcesBuildProvider.cs
- UrlPath.cs
- SafeJobHandle.cs
- LogLogRecordEnumerator.cs
- XmlExceptionHelper.cs
- DataGridTable.cs
- BinaryObjectReader.cs
- CodePageUtils.cs
- SqlDataSourceCommandEventArgs.cs
- ScalarOps.cs
- NamespaceQuery.cs
- Listener.cs
- XmlSchemaNotation.cs
- GridViewUpdatedEventArgs.cs
- QilPatternVisitor.cs
- GenericAuthenticationEventArgs.cs
- WindowsBrush.cs
- EncryptedPackage.cs
- SecurityResources.cs
- SecurityTokenException.cs
- Freezable.cs
- ConfigurationFileMap.cs
- Privilege.cs
- NativeMethods.cs
- DifferencingCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- ScriptControlManager.cs
- Debugger.cs
- CqlGenerator.cs
- FixedSchema.cs
- WaitForChangedResult.cs
- ValidationEventArgs.cs
- sqlser.cs
- Point3D.cs
- DataGridViewColumnEventArgs.cs
- SystemDiagnosticsSection.cs
- ValidatingCollection.cs
- Nullable.cs
- WebControl.cs
- DataGridColumnHeader.cs
- LoginView.cs
- SystemPens.cs
- DataSourceExpression.cs
- DataBoundControlAdapter.cs
- ComplexTypeEmitter.cs
- AttributeSetAction.cs
- autovalidator.cs
- RuntimeConfigLKG.cs
- FocusChangedEventArgs.cs
- SpeakCompletedEventArgs.cs
- DefaultDialogButtons.cs
- Transform3DCollection.cs
- Blend.cs
- FormViewUpdateEventArgs.cs
- XmlSchemaDocumentation.cs
- RelationshipDetailsCollection.cs
- StringResourceManager.cs
- RichTextBox.cs
- TextContainerChangedEventArgs.cs
- UserNamePasswordValidator.cs
- SystemDiagnosticsSection.cs
- DisplayToken.cs
- HwndHost.cs
- AutomationAttributeInfo.cs
- FontConverter.cs
- ZoneButton.cs
- Size.cs
- DialogResultConverter.cs
- SelectionChangedEventArgs.cs
- WsatProxy.cs
- PingOptions.cs