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
- WebHttpElement.cs
- ListViewItem.cs
- KernelTypeValidation.cs
- ToolStripItemEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Statements.cs
- SafeMemoryMappedViewHandle.cs
- SerializableAttribute.cs
- DCSafeHandle.cs
- RectKeyFrameCollection.cs
- ThaiBuddhistCalendar.cs
- SqlDataSourceSummaryPanel.cs
- TemplateControlCodeDomTreeGenerator.cs
- SecurityContextKeyIdentifierClause.cs
- Form.cs
- FileDialogCustomPlace.cs
- ContentTextAutomationPeer.cs
- iisPickupDirectory.cs
- ToolStripItem.cs
- NotifyIcon.cs
- PrimitiveSchema.cs
- ActivityBuilderHelper.cs
- Point4DConverter.cs
- CompositionCommandSet.cs
- XmlBoundElement.cs
- ellipse.cs
- TransactionOptions.cs
- Vector.cs
- SourceChangedEventArgs.cs
- RegistryKey.cs
- BasicCommandTreeVisitor.cs
- ArrayExtension.cs
- InvariantComparer.cs
- PriorityQueue.cs
- TCPListener.cs
- Pen.cs
- ToolboxDataAttribute.cs
- TdsEnums.cs
- DataGridViewCellValueEventArgs.cs
- SymbolEqualComparer.cs
- SingleStorage.cs
- MergeFilterQuery.cs
- handlecollector.cs
- WizardStepCollectionEditor.cs
- NegotiateStream.cs
- ProcessStartInfo.cs
- SqlLiftWhereClauses.cs
- RotateTransform.cs
- CookieHandler.cs
- TemplateControlCodeDomTreeGenerator.cs
- SplitterEvent.cs
- Button.cs
- StringToken.cs
- StylusPlugInCollection.cs
- ContextMenu.cs
- DataColumnSelectionConverter.cs
- GenericNameHandler.cs
- RequestCacheEntry.cs
- MessageCredentialType.cs
- Filter.cs
- NavigationFailedEventArgs.cs
- xmlfixedPageInfo.cs
- Component.cs
- graph.cs
- WindowsUpDown.cs
- ConfigurationManager.cs
- TextDecorationUnitValidation.cs
- WizardStepBase.cs
- SecurityContext.cs
- dbdatarecord.cs
- XmlSerializerSection.cs
- TransformationRules.cs
- KeyTime.cs
- DbQueryCommandTree.cs
- StringToken.cs
- FormViewUpdateEventArgs.cs
- QueryStringParameter.cs
- ItemChangedEventArgs.cs
- EditorPart.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RoleGroup.cs
- Zone.cs
- WebPartTransformer.cs
- TextEditorDragDrop.cs
- DeleteWorkflowOwnerCommand.cs
- DescriptionAttribute.cs
- ExceptionRoutedEventArgs.cs
- SessionStateModule.cs
- XmlSchemas.cs
- ObservableDictionary.cs
- EncoderBestFitFallback.cs
- ShaderEffect.cs
- FileCodeGroup.cs
- _UncName.cs
- PageSettings.cs
- AppModelKnownContentFactory.cs
- MobileContainerDesigner.cs
- SpeechUI.cs
- OdbcParameter.cs
- SmiContext.cs