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
- DoubleLink.cs
- XmlCompatibilityReader.cs
- BitmapFrame.cs
- Formatter.cs
- _TimerThread.cs
- ConstraintConverter.cs
- RequestUriProcessor.cs
- ScriptResourceInfo.cs
- TaskFileService.cs
- DiscoveryClientElement.cs
- FileSystemInfo.cs
- ParamArrayAttribute.cs
- SqlInfoMessageEvent.cs
- HtmlTextBoxAdapter.cs
- ProviderSettings.cs
- OrderedDictionary.cs
- DataColumnMappingCollection.cs
- Crc32Helper.cs
- BigInt.cs
- IsolatedStorageFileStream.cs
- CookielessHelper.cs
- DeflateInput.cs
- TreeNodeEventArgs.cs
- SqlCommandSet.cs
- EventLogPermissionEntry.cs
- ProviderConnectionPoint.cs
- DesignSurfaceCollection.cs
- XsdValidatingReader.cs
- HtmlElementEventArgs.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TextServicesCompartmentEventSink.cs
- ContentPathSegment.cs
- OutputWindow.cs
- WeakEventTable.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- GenericTypeParameterConverter.cs
- AddIn.cs
- CircleEase.cs
- OleDbInfoMessageEvent.cs
- VirtualizedContainerService.cs
- XamlBuildProvider.cs
- SourceSwitch.cs
- AttributeProviderAttribute.cs
- PageWrapper.cs
- LinqDataSourceStatusEventArgs.cs
- Stacktrace.cs
- TypeHelpers.cs
- SqlUdtInfo.cs
- UriSectionData.cs
- _ConnectOverlappedAsyncResult.cs
- Serializer.cs
- ChameleonKey.cs
- ShapeTypeface.cs
- AutomationElement.cs
- SQLBinaryStorage.cs
- PlaceHolder.cs
- ApplicationServiceManager.cs
- Pkcs7Recipient.cs
- ObjectTag.cs
- SingleTagSectionHandler.cs
- ListBox.cs
- GuidelineSet.cs
- ProviderBase.cs
- PreProcessor.cs
- Schema.cs
- AlphabeticalEnumConverter.cs
- DNS.cs
- SimpleMailWebEventProvider.cs
- SoapConverter.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartCollection.cs
- XmlWellformedWriter.cs
- EncryptedReference.cs
- DebugViewWriter.cs
- Helpers.cs
- JsonObjectDataContract.cs
- ConditionBrowserDialog.cs
- NameTable.cs
- ProxyRpc.cs
- EdmType.cs
- MimeFormatExtensions.cs
- LinqDataSourceSelectEventArgs.cs
- File.cs
- TokenCreationParameter.cs
- WebPartCatalogAddVerb.cs
- ColorMatrix.cs
- KeyMatchBuilder.cs
- InvokeWebServiceDesigner.cs
- LoopExpression.cs
- PasswordBoxAutomationPeer.cs
- AuthorizationSection.cs
- DataContractJsonSerializerOperationBehavior.cs
- Command.cs
- PropertyPathWorker.cs
- FixedDocumentPaginator.cs
- TriggerAction.cs
- CheckBoxField.cs
- ImageMap.cs
- EntityDataSourceSelectedEventArgs.cs
- SQLDateTime.cs