Code:
/ FX-1434 / FX-1434 / 1.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
- ToolStripContentPanelRenderEventArgs.cs
- RangeValueProviderWrapper.cs
- TrustManager.cs
- MetabaseServerConfig.cs
- TextLineBreak.cs
- GcHandle.cs
- WinFormsUtils.cs
- Match.cs
- FormView.cs
- MiniModule.cs
- AddInAdapter.cs
- ReferentialConstraint.cs
- DBDataPermission.cs
- XamlDesignerSerializationManager.cs
- ToolStripItemCollection.cs
- ExpanderAutomationPeer.cs
- ScriptingWebServicesSectionGroup.cs
- NamedObject.cs
- HttpGetProtocolImporter.cs
- SmtpNegotiateAuthenticationModule.cs
- TripleDES.cs
- ErrorRuntimeConfig.cs
- EventHandlerService.cs
- MtomMessageEncoder.cs
- SecurityPolicySection.cs
- SafeNativeMethods.cs
- DataGrid.cs
- ConfigurationStrings.cs
- WebPartDisplayModeCollection.cs
- EditingScopeUndoUnit.cs
- MaterialGroup.cs
- GridLengthConverter.cs
- IChannel.cs
- DefaultObjectMappingItemCollection.cs
- Module.cs
- TimeSpanValidatorAttribute.cs
- FormViewModeEventArgs.cs
- VisualStyleTypesAndProperties.cs
- ContentControl.cs
- Comparer.cs
- InputScope.cs
- ObfuscateAssemblyAttribute.cs
- ToolStripLabel.cs
- WhitespaceSignificantCollectionAttribute.cs
- AppSettingsSection.cs
- UnicastIPAddressInformationCollection.cs
- MimeAnyImporter.cs
- AllMembershipCondition.cs
- ToolStripGripRenderEventArgs.cs
- RotateTransform3D.cs
- SystemColorTracker.cs
- UserControlDesigner.cs
- COMException.cs
- ColorConvertedBitmap.cs
- sqlcontext.cs
- WindowsComboBox.cs
- MediaPlayer.cs
- Restrictions.cs
- ServiceObjectContainer.cs
- XsdValidatingReader.cs
- TrackingProfileSerializer.cs
- WindowsListViewItemCheckBox.cs
- UpdatePanel.cs
- SqlDependencyUtils.cs
- BooleanStorage.cs
- WebPartConnection.cs
- ControlIdConverter.cs
- ItemsPresenter.cs
- ChildTable.cs
- JpegBitmapDecoder.cs
- BlockCollection.cs
- Stacktrace.cs
- GridItemProviderWrapper.cs
- GeneralTransform3DCollection.cs
- SoapAttributeOverrides.cs
- ApplicationProxyInternal.cs
- LogStore.cs
- DataColumnPropertyDescriptor.cs
- Identity.cs
- QueryBranchOp.cs
- LabelDesigner.cs
- WeakReference.cs
- Root.cs
- StyleXamlParser.cs
- MinimizableAttributeTypeConverter.cs
- SettingsBindableAttribute.cs
- KnownBoxes.cs
- WsatRegistrationHeader.cs
- WebUtil.cs
- FlowNode.cs
- QueryHandler.cs
- Metafile.cs
- DriveInfo.cs
- PinnedBufferMemoryStream.cs
- AdRotator.cs
- InvalidContentTypeException.cs
- storepermissionattribute.cs
- RepeatBehavior.cs
- HebrewCalendar.cs
- WebScriptMetadataMessage.cs