Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / InvalidOperationException.cs / 1 / InvalidOperationException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InvalidOperationException ** ** ** Purpose: Exception class for denoting an object was in a state that ** made calling a method illegal. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class InvalidOperationException : SystemException { public InvalidOperationException() : base(Environment.GetResourceString("Arg_InvalidOperationException")) { SetErrorCode(__HResults.COR_E_INVALIDOPERATION); } public InvalidOperationException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INVALIDOPERATION); } public InvalidOperationException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INVALIDOPERATION); } protected InvalidOperationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CorrelationRequestContext.cs
- SafeCryptoKeyHandle.cs
- XmlDictionaryReader.cs
- CqlErrorHelper.cs
- Graphics.cs
- XamlReader.cs
- TagMapInfo.cs
- OptimizerPatterns.cs
- CompositeFontParser.cs
- WindowsTab.cs
- BuilderInfo.cs
- TypedColumnHandler.cs
- DbProviderManifest.cs
- ProtectedConfigurationProviderCollection.cs
- PopOutPanel.cs
- DatatypeImplementation.cs
- CodeRegionDirective.cs
- RootProfilePropertySettingsCollection.cs
- MarshalDirectiveException.cs
- FontSource.cs
- DesignerActionUI.cs
- XmlTextAttribute.cs
- OrderedDictionary.cs
- ListItem.cs
- UpdateException.cs
- StdRegProviderWrapper.cs
- VisualBrush.cs
- PasswordBoxAutomationPeer.cs
- Validator.cs
- NotSupportedException.cs
- QuotedStringWriteStateInfo.cs
- ProfileBuildProvider.cs
- WebPartConnectionCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- X509Certificate2.cs
- Int16AnimationUsingKeyFrames.cs
- TabletCollection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ResourcePermissionBaseEntry.cs
- RadioButtonFlatAdapter.cs
- DataGridColumn.cs
- Rethrow.cs
- EnumValAlphaComparer.cs
- EncoderFallback.cs
- WebPartConnectionsConfigureVerb.cs
- ScrollViewerAutomationPeer.cs
- StubHelpers.cs
- Regex.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SHA384.cs
- RequestCacheValidator.cs
- XmlSchemaAnyAttribute.cs
- ReadOnlyPropertyMetadata.cs
- StringKeyFrameCollection.cs
- UIElement3D.cs
- FreeFormDesigner.cs
- FixedBufferAttribute.cs
- TypeExtensionConverter.cs
- OleDbPropertySetGuid.cs
- DynamicContractTypeBuilder.cs
- TemplateXamlParser.cs
- Gdiplus.cs
- DbConnectionPoolGroup.cs
- CoTaskMemSafeHandle.cs
- DataRelationPropertyDescriptor.cs
- SurrogateEncoder.cs
- ActivationService.cs
- HostedHttpContext.cs
- UndoEngine.cs
- VSWCFServiceContractGenerator.cs
- mediaeventargs.cs
- QueryResult.cs
- MembershipUser.cs
- BindUriHelper.cs
- EdgeProfileValidation.cs
- SerializationUtilities.cs
- UIElementCollection.cs
- UIElementIsland.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- validationstate.cs
- EntityDataSourceSelectingEventArgs.cs
- NonClientArea.cs
- RegexCompilationInfo.cs
- InputReportEventArgs.cs
- EntityStoreSchemaGenerator.cs
- SoapElementAttribute.cs
- SystemThemeKey.cs
- EUCJPEncoding.cs
- SafeBitVector32.cs
- ParallelRangeManager.cs
- _DisconnectOverlappedAsyncResult.cs
- OleDbDataAdapter.cs
- TextElementCollection.cs
- CacheHelper.cs
- BaseValidator.cs
- RoutedUICommand.cs
- NamedPermissionSet.cs
- WasEndpointConfigContainer.cs
- SequentialUshortCollection.cs
- EntityContainerEntitySet.cs