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
- FrameSecurityDescriptor.cs
- PartialCachingAttribute.cs
- HtmlInputImage.cs
- Soap12ServerProtocol.cs
- DateTimeFormatInfo.cs
- CounterCreationDataCollection.cs
- TargetControlTypeAttribute.cs
- DataGridViewCellCollection.cs
- TextBox.cs
- DataGridViewCellParsingEventArgs.cs
- ListViewDeletedEventArgs.cs
- UpdatePanel.cs
- XamlDesignerSerializationManager.cs
- PackageRelationshipSelector.cs
- relpropertyhelper.cs
- ValidationError.cs
- PeerPresenceInfo.cs
- InkCanvasAutomationPeer.cs
- ContentValidator.cs
- XmlObjectSerializerWriteContext.cs
- SafeCryptHandles.cs
- InitializingNewItemEventArgs.cs
- DataTableMappingCollection.cs
- ChildTable.cs
- ContentPlaceHolder.cs
- IsolatedStorageFileStream.cs
- DataErrorValidationRule.cs
- Expressions.cs
- ApplicationServiceHelper.cs
- EncryptedPackageFilter.cs
- DefaultPropertyAttribute.cs
- CallInfo.cs
- TextDocumentView.cs
- IRCollection.cs
- InputLanguageEventArgs.cs
- DataGridViewRow.cs
- AutoGeneratedFieldProperties.cs
- HttpCachePolicyElement.cs
- FixedPageStructure.cs
- TemplateContent.cs
- DesignOnlyAttribute.cs
- DataTemplateSelector.cs
- QilXmlWriter.cs
- ElementMarkupObject.cs
- WaitingCursor.cs
- BindingContext.cs
- SqlCacheDependencySection.cs
- SponsorHelper.cs
- TypeConverters.cs
- DynamicActivityXamlReader.cs
- LockRecoveryTask.cs
- IgnoreSection.cs
- HtmlInputFile.cs
- TreeNodeEventArgs.cs
- TaskDesigner.cs
- DataPagerCommandEventArgs.cs
- String.cs
- TransformerTypeCollection.cs
- Matrix.cs
- LockRecursionException.cs
- SizeAnimationUsingKeyFrames.cs
- PropertyValueUIItem.cs
- OpenFileDialog.cs
- ProfileSection.cs
- PolicyChain.cs
- XPathSingletonIterator.cs
- SqlNotificationEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- DllNotFoundException.cs
- SqlClientWrapperSmiStream.cs
- VerticalAlignConverter.cs
- DbgUtil.cs
- ObjectDataSourceMethodEventArgs.cs
- ComEventsMethod.cs
- DataGridViewSelectedCellCollection.cs
- StrongNameMembershipCondition.cs
- PreviousTrackingServiceAttribute.cs
- Brushes.cs
- ImpersonationContext.cs
- DataRelationCollection.cs
- BaseTemplateBuildProvider.cs
- WebMessageFormatHelper.cs
- Socket.cs
- HtmlElementCollection.cs
- ControlPropertyNameConverter.cs
- XmlQueryType.cs
- prompt.cs
- PartialArray.cs
- ConstructorArgumentAttribute.cs
- ValidationHelper.cs
- CompensatableTransactionScopeActivity.cs
- HotSpot.cs
- RegionData.cs
- PermissionSet.cs
- MsmqMessage.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- UnsafeMethods.cs
- MdiWindowListStrip.cs
- GridToolTip.cs
- BaseCAMarshaler.cs