Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityCommandExecutionException.cs / 1305376 / EntityCommandExecutionException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data { using System; using System.IO; using System.Data.Common; using System.Globalization; using System.Runtime.Serialization; using System.Security.Permissions; ////// Represents a failure while trying to prepare or execute a CommandExecution /// /// This exception is intended to provide a common exception that people can catch to /// hold provider exceptions (SqlException, OracleException) when using the EntityCommand /// to execute statements. /// [Serializable] public sealed class EntityCommandExecutionException : EntityException { #region Constructors ////// initializes a new instance of EntityCommandExecutionException, no message, no inner exception. Probably shouldn't /// exist, but it makes FxCop happy. /// public EntityCommandExecutionException() : base() { HResult = HResults.CommandExecution; } ////// initializes a new instance of EntityCommandExecutionException, with message, no inner exception. Probably shouldn't /// exist, but it makes FxCop happy. /// public EntityCommandExecutionException(string message) : base(message) { HResult = HResults.CommandExecution; } ////// initializes a new instance of EntityCommandExecutionException with message and an inner exception instance /// /// /// public EntityCommandExecutionException(string message, Exception innerException) : base(message, innerException) { HResult = HResults.CommandExecution; } ////// initializes a new instance EntityCommandExecutionException with a given SerializationInfo and StreamingContext /// /// /// private EntityCommandExecutionException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { HResult = HResults.CommandExecution; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data { using System; using System.IO; using System.Data.Common; using System.Globalization; using System.Runtime.Serialization; using System.Security.Permissions; ////// Represents a failure while trying to prepare or execute a CommandExecution /// /// This exception is intended to provide a common exception that people can catch to /// hold provider exceptions (SqlException, OracleException) when using the EntityCommand /// to execute statements. /// [Serializable] public sealed class EntityCommandExecutionException : EntityException { #region Constructors ////// initializes a new instance of EntityCommandExecutionException, no message, no inner exception. Probably shouldn't /// exist, but it makes FxCop happy. /// public EntityCommandExecutionException() : base() { HResult = HResults.CommandExecution; } ////// initializes a new instance of EntityCommandExecutionException, with message, no inner exception. Probably shouldn't /// exist, but it makes FxCop happy. /// public EntityCommandExecutionException(string message) : base(message) { HResult = HResults.CommandExecution; } ////// initializes a new instance of EntityCommandExecutionException with message and an inner exception instance /// /// /// public EntityCommandExecutionException(string message, Exception innerException) : base(message, innerException) { HResult = HResults.CommandExecution; } ////// initializes a new instance EntityCommandExecutionException with a given SerializationInfo and StreamingContext /// /// /// private EntityCommandExecutionException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { HResult = HResults.CommandExecution; } #endregion } } // 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
- SR.cs
- FixedSOMSemanticBox.cs
- XamlSerializerUtil.cs
- CancellationToken.cs
- DesignOnlyAttribute.cs
- RawUIStateInputReport.cs
- DataSourceSelectArguments.cs
- TabControl.cs
- GridItem.cs
- DependencyObjectPropertyDescriptor.cs
- MimeTypeAttribute.cs
- AsyncDataRequest.cs
- GridItemCollection.cs
- RSAPKCS1SignatureFormatter.cs
- DataBoundControlHelper.cs
- ResizingMessageFilter.cs
- CollectionViewProxy.cs
- StaticResourceExtension.cs
- ScrollBarRenderer.cs
- GeneratedContractType.cs
- DynamicPropertyHolder.cs
- OutputCacheModule.cs
- TableRow.cs
- QilLoop.cs
- PriorityQueue.cs
- OleDbException.cs
- BufferedGraphicsContext.cs
- SocketInformation.cs
- RenderTargetBitmap.cs
- AgileSafeNativeMemoryHandle.cs
- OletxEnlistment.cs
- SQLGuidStorage.cs
- ProtocolsConfigurationEntry.cs
- PrefixQName.cs
- UnsafeNativeMethods.cs
- SqlBulkCopyColumnMapping.cs
- SqlConnectionStringBuilder.cs
- XPathDocumentIterator.cs
- RegularExpressionValidator.cs
- TabItem.cs
- ConfigXmlElement.cs
- FixedLineResult.cs
- SemanticTag.cs
- XmlSchemaSimpleTypeUnion.cs
- MemberAccessException.cs
- XamlPointCollectionSerializer.cs
- ImportFileRequest.cs
- MultiByteCodec.cs
- EventDescriptorCollection.cs
- FormViewPageEventArgs.cs
- PropertyChangingEventArgs.cs
- KeyedHashAlgorithm.cs
- TreeViewDesigner.cs
- DataObjectEventArgs.cs
- MSAAWinEventWrap.cs
- Cursor.cs
- OpenTypeCommon.cs
- FixedFindEngine.cs
- AccessedThroughPropertyAttribute.cs
- TemplateInstanceAttribute.cs
- OdbcFactory.cs
- TraceData.cs
- DataControlPagerLinkButton.cs
- DataControlCommands.cs
- SafeRightsManagementHandle.cs
- HybridDictionary.cs
- SqlReferenceCollection.cs
- BaseCodePageEncoding.cs
- DecimalAnimation.cs
- ItemPager.cs
- DataContext.cs
- TimeSpanValidatorAttribute.cs
- SQLByte.cs
- Identity.cs
- WebBrowserNavigatedEventHandler.cs
- QueryCorrelationInitializer.cs
- ExpressionStringBuilder.cs
- SafeEventLogWriteHandle.cs
- ElementHostAutomationPeer.cs
- CompatibleComparer.cs
- SourceElementsCollection.cs
- LinkAreaEditor.cs
- NamedPipeChannelListener.cs
- unsafenativemethodstextservices.cs
- XmlLinkedNode.cs
- HostVisual.cs
- ElementProxy.cs
- AutoCompleteStringCollection.cs
- WorkflowPersistenceService.cs
- ParallelTimeline.cs
- ComEventsInfo.cs
- ToolboxItemWrapper.cs
- XamlStackWriter.cs
- WsiProfilesElementCollection.cs
- _CommandStream.cs
- ObjectComplexPropertyMapping.cs
- WindowsGraphicsCacheManager.cs
- XslTransformFileEditor.cs
- DispatcherEventArgs.cs
- ScaleTransform.cs