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
- WindowsSecurityTokenAuthenticator.cs
- ObjectStateFormatter.cs
- DBProviderConfigurationHandler.cs
- IntSecurity.cs
- EntityWrapper.cs
- XamlStyleSerializer.cs
- PersonalizationStateQuery.cs
- Stack.cs
- ListView.cs
- ActiveXHost.cs
- TextEditorTyping.cs
- Vector3DCollectionConverter.cs
- Oid.cs
- JsonFormatReaderGenerator.cs
- BindingNavigator.cs
- XmlTypeMapping.cs
- ParameterCollection.cs
- CaseCqlBlock.cs
- TransformConverter.cs
- RootDesignerSerializerAttribute.cs
- Rotation3DKeyFrameCollection.cs
- DBAsyncResult.cs
- Int16.cs
- InkCanvasFeedbackAdorner.cs
- BaseCollection.cs
- HttpStreamMessageEncoderFactory.cs
- ExtractorMetadata.cs
- RecordBuilder.cs
- Point4DValueSerializer.cs
- UnsafeNativeMethods.cs
- HtmlToClrEventProxy.cs
- TypeDelegator.cs
- documentation.cs
- LocatorPart.cs
- SqlAggregateChecker.cs
- CustomTypeDescriptor.cs
- ImageBrush.cs
- DocumentPage.cs
- RawStylusInputCustomDataList.cs
- Screen.cs
- AnnouncementSendsAsyncResult.cs
- ErrorView.xaml.cs
- NativeBuffer.cs
- TextBreakpoint.cs
- DrawingCollection.cs
- TreeNodeStyleCollection.cs
- SingleKeyFrameCollection.cs
- DataObjectPastingEventArgs.cs
- UpdatePanel.cs
- LocalizableResourceBuilder.cs
- StrongNameHelpers.cs
- InfoCardKeyedHashAlgorithm.cs
- HttpProfileBase.cs
- WorkflowNamespace.cs
- RandomNumberGenerator.cs
- DataRowCollection.cs
- FormsAuthenticationUser.cs
- HtmlWindowCollection.cs
- PathGradientBrush.cs
- RelationshipManager.cs
- PageContentAsyncResult.cs
- RepeatEnumerable.cs
- ResourceDisplayNameAttribute.cs
- GetReadStreamResult.cs
- PrintingPermissionAttribute.cs
- CodeNamespaceImport.cs
- TreeViewImageIndexConverter.cs
- DateTimeOffset.cs
- SystemTcpConnection.cs
- InvalidAsynchronousStateException.cs
- ItemMap.cs
- XmlElementList.cs
- ZipIOExtraFieldZip64Element.cs
- SynchronizedInputHelper.cs
- LogLogRecordEnumerator.cs
- XsltContext.cs
- WindowInteropHelper.cs
- LinqMaximalSubtreeNominator.cs
- PlanCompilerUtil.cs
- SqlUserDefinedTypeAttribute.cs
- EntityEntry.cs
- FocusChangedEventArgs.cs
- ResXResourceSet.cs
- ResXFileRef.cs
- CodeStatement.cs
- SQLGuidStorage.cs
- MulticastIPAddressInformationCollection.cs
- ButtonBase.cs
- NamespaceList.cs
- AuthenticatedStream.cs
- WebPartEditorOkVerb.cs
- ChangePassword.cs
- TaskHelper.cs
- LicenseContext.cs
- ContentPlaceHolder.cs
- ConsoleTraceListener.cs
- DictionaryBase.cs
- ListViewAutomationPeer.cs
- DeviceSpecific.cs
- SQLConvert.cs