Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InvalidOperationException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected InvalidOperationException(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: 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); } [System.Security.SecuritySafeCritical] // auto-generated protected InvalidOperationException(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
- Walker.cs
- DataGridViewRowEventArgs.cs
- WebServicesSection.cs
- TextContainerChangeEventArgs.cs
- ListBase.cs
- HostingEnvironmentException.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PrtCap_Public_Simple.cs
- OperandQuery.cs
- sitestring.cs
- RC2CryptoServiceProvider.cs
- CultureNotFoundException.cs
- SqlExpressionNullability.cs
- ApplicationSecurityInfo.cs
- TraceSwitch.cs
- NeutralResourcesLanguageAttribute.cs
- WindowHelperService.cs
- RsaElement.cs
- ApplicationDirectoryMembershipCondition.cs
- NativeMethods.cs
- PropertyEmitterBase.cs
- ManagedWndProcTracker.cs
- DBAsyncResult.cs
- XmlSchemaInferenceException.cs
- assertwrapper.cs
- ComponentConverter.cs
- Visitors.cs
- DiscoveryDocument.cs
- IFlowDocumentViewer.cs
- NameTable.cs
- CharacterBuffer.cs
- SoapProtocolImporter.cs
- RoutingBehavior.cs
- Range.cs
- LogicalExpr.cs
- MemoryFailPoint.cs
- TextTreeDeleteContentUndoUnit.cs
- AssemblyAttributes.cs
- HtmlInputCheckBox.cs
- WindowsGraphics.cs
- WsrmMessageInfo.cs
- SectionVisual.cs
- ArcSegment.cs
- DataGridDetailsPresenterAutomationPeer.cs
- List.cs
- DependencyProperty.cs
- TrustSection.cs
- CodeSubDirectory.cs
- SparseMemoryStream.cs
- GradientBrush.cs
- SqlRetyper.cs
- Stacktrace.cs
- CollectionTypeElement.cs
- ParameterCollection.cs
- CompositeDataBoundControl.cs
- SynchronizedDisposablePool.cs
- QueryCursorEventArgs.cs
- AppDomainManager.cs
- SByte.cs
- ElementsClipboardData.cs
- XmlSecureResolver.cs
- DecryptedHeader.cs
- UInt64Storage.cs
- cookie.cs
- HwndAppCommandInputProvider.cs
- ObjectReaderCompiler.cs
- WebPartVerbCollection.cs
- BinHexDecoder.cs
- WebPartDescription.cs
- PageStatePersister.cs
- LineServicesCallbacks.cs
- ToolBarPanel.cs
- WindowsListBox.cs
- GeometryHitTestResult.cs
- ColumnPropertiesGroup.cs
- WriterOutput.cs
- ReleaseInstanceMode.cs
- UserPreferenceChangedEventArgs.cs
- ImageMapEventArgs.cs
- Rect3D.cs
- MaskPropertyEditor.cs
- smtpconnection.cs
- TdsParserStateObject.cs
- XmlSchemaAttributeGroup.cs
- InternalBufferOverflowException.cs
- QuotedPrintableStream.cs
- NativeActivity.cs
- PopupRoot.cs
- _ScatterGatherBuffers.cs
- EventDescriptor.cs
- ScriptIgnoreAttribute.cs
- WindowsGraphicsCacheManager.cs
- Table.cs
- Imaging.cs
- SchemaEntity.cs
- CookieProtection.cs
- ServicePointManagerElement.cs
- ReflectionUtil.cs
- TcpChannelFactory.cs
- tibetanshape.cs