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
- TemplateControl.cs
- DataObject.cs
- SendMailErrorEventArgs.cs
- XhtmlBasicControlAdapter.cs
- ResourceDescriptionAttribute.cs
- DataSetSchema.cs
- DataGridViewTextBoxEditingControl.cs
- AsymmetricSignatureDeformatter.cs
- FacetDescriptionElement.cs
- ToolStripComboBox.cs
- DropShadowEffect.cs
- ReadContentAsBinaryHelper.cs
- RecognizedAudio.cs
- HttpPostProtocolImporter.cs
- Label.cs
- ResolveNameEventArgs.cs
- mediapermission.cs
- SapiAttributeParser.cs
- XamlReaderHelper.cs
- ExtendedPropertyCollection.cs
- VisualBrush.cs
- HeaderElement.cs
- CodeBlockBuilder.cs
- ExceptionHelpers.cs
- MenuItemStyle.cs
- RequestStatusBarUpdateEventArgs.cs
- ChangeBlockUndoRecord.cs
- DeflateInput.cs
- QuaternionRotation3D.cs
- ModuleConfigurationInfo.cs
- unitconverter.cs
- BitmapEffectInput.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DurationConverter.cs
- FrameworkElementFactory.cs
- StreamingContext.cs
- GridViewColumn.cs
- DataSourceCacheDurationConverter.cs
- XmlHelper.cs
- NameValueConfigurationElement.cs
- HostUtils.cs
- OleDbException.cs
- XmlRawWriter.cs
- IndexingContentUnit.cs
- WindowsEditBox.cs
- InspectionWorker.cs
- DataConnectionHelper.cs
- dtdvalidator.cs
- coordinatorfactory.cs
- Compress.cs
- peernodeimplementation.cs
- MimeParameterWriter.cs
- UserValidatedEventArgs.cs
- InfoCard.cs
- CqlParser.cs
- CompilationSection.cs
- MarkupObject.cs
- BitmapEffectInput.cs
- TimeSpanConverter.cs
- ProjectionAnalyzer.cs
- LocalTransaction.cs
- InfoCardTrace.cs
- ByeMessageCD1.cs
- Privilege.cs
- DataSourceCacheDurationConverter.cs
- FileDialogCustomPlace.cs
- SortKey.cs
- WebBrowser.cs
- FixedPageStructure.cs
- BamlBinaryWriter.cs
- ObjectReferenceStack.cs
- AssemblyBuilder.cs
- SiteMapNodeItem.cs
- XmlDataCollection.cs
- TextControlDesigner.cs
- CodeAttributeDeclarationCollection.cs
- SqlDuplicator.cs
- QueryReaderSettings.cs
- ToolboxItemAttribute.cs
- SqlXml.cs
- TextRange.cs
- ReflectionPermission.cs
- SecurityMode.cs
- Keyboard.cs
- ListBindingConverter.cs
- FilterQuery.cs
- ConnectionManagementSection.cs
- UrlAuthorizationModule.cs
- ValueQuery.cs
- ViewPort3D.cs
- PagerStyle.cs
- DataObjectMethodAttribute.cs
- ColumnMapCopier.cs
- DataStreamFromComStream.cs
- CachedTypeface.cs
- TemplatePartAttribute.cs
- TextServicesDisplayAttribute.cs
- FrameworkElement.cs
- GridToolTip.cs
- WSHttpBindingElement.cs