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
- WCFModelStrings.Designer.cs
- AttachedPropertyBrowsableAttribute.cs
- SuppressMessageAttribute.cs
- RuntimeConfig.cs
- XmlAttributeCollection.cs
- EncoderExceptionFallback.cs
- CategoryAttribute.cs
- PrivacyNoticeBindingElementImporter.cs
- TypeNameConverter.cs
- TabPage.cs
- Debug.cs
- ClientSettingsStore.cs
- AdRotator.cs
- KeyTime.cs
- ViewValidator.cs
- MetaForeignKeyColumn.cs
- TextEditorSelection.cs
- XmlSchemaExporter.cs
- MouseGesture.cs
- Dynamic.cs
- MergeFilterQuery.cs
- ControlBuilder.cs
- HelpEvent.cs
- ObjectListDesigner.cs
- PageSettings.cs
- smtpconnection.cs
- ServiceOperationParameter.cs
- OleDbCommand.cs
- UInt32Storage.cs
- ServiceNameElement.cs
- ConstantCheck.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DynamicUpdateCommand.cs
- AccessKeyManager.cs
- Msec.cs
- DropShadowEffect.cs
- EditorAttribute.cs
- TableParagraph.cs
- XPathDescendantIterator.cs
- base64Transforms.cs
- OrderedDictionaryStateHelper.cs
- AdornerLayer.cs
- FeatureSupport.cs
- StyleBamlTreeBuilder.cs
- WindowsAuthenticationEventArgs.cs
- GacUtil.cs
- ConfigXmlDocument.cs
- ConfigXmlWhitespace.cs
- xmlsaver.cs
- MetadataHelper.cs
- InternalBase.cs
- DataFormats.cs
- PageRanges.cs
- PathFigureCollection.cs
- DataRecordInfo.cs
- SQLDecimalStorage.cs
- TextEditor.cs
- ResourcePool.cs
- GlobalDataBindingHandler.cs
- IdentityManager.cs
- ImageEditor.cs
- ImageClickEventArgs.cs
- Form.cs
- EntityDataSourceSelectedEventArgs.cs
- MainMenu.cs
- BinHexEncoding.cs
- InternalCache.cs
- ExpandCollapseProviderWrapper.cs
- EDesignUtil.cs
- IncrementalCompileAnalyzer.cs
- documentsequencetextpointer.cs
- CellParaClient.cs
- SQLByteStorage.cs
- ResourcePermissionBaseEntry.cs
- Debug.cs
- EventLogPermissionHolder.cs
- SslStreamSecurityElement.cs
- SafeIUnknown.cs
- OleDbMetaDataFactory.cs
- NameValuePermission.cs
- ListViewItem.cs
- PassportPrincipal.cs
- SolidColorBrush.cs
- OutOfProcStateClientManager.cs
- AnnotationMap.cs
- FixUpCollection.cs
- UnknownWrapper.cs
- FixedDocumentPaginator.cs
- VisualStateManager.cs
- Pkcs7Recipient.cs
- TreeBuilder.cs
- IconConverter.cs
- DesignerTransactionCloseEvent.cs
- SymbolMethod.cs
- ContentIterators.cs
- SemanticKeyElement.cs
- Aes.cs
- XmlSchemaComplexContent.cs
- ScrollPattern.cs
- Converter.cs