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
- Oci.cs
- AlternateView.cs
- XmlSchemaDatatype.cs
- LinqDataView.cs
- LongValidator.cs
- AdRotator.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- TextTreeUndo.cs
- SafeWaitHandle.cs
- PipeException.cs
- RIPEMD160.cs
- PopupControlService.cs
- HtmlElementErrorEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- XPathSelectionIterator.cs
- CheckBoxAutomationPeer.cs
- EmptyEnumerator.cs
- NotifyInputEventArgs.cs
- ObjectRef.cs
- DictionarySectionHandler.cs
- MouseWheelEventArgs.cs
- Relationship.cs
- IsolatedStorageFileStream.cs
- InternalCache.cs
- DispatcherOperation.cs
- XPathAncestorQuery.cs
- StandardTransformFactory.cs
- CryptoConfig.cs
- Type.cs
- SerializerWriterEventHandlers.cs
- BufferBuilder.cs
- BindToObject.cs
- Adorner.cs
- TemplateNodeContextMenu.cs
- ContextMarshalException.cs
- _NegotiateClient.cs
- ListViewContainer.cs
- XmlSchemaComplexContentRestriction.cs
- ResourceKey.cs
- MenuEventArgs.cs
- FontTypeConverter.cs
- Application.cs
- ExpressionEditorAttribute.cs
- IsolatedStorageFileStream.cs
- SystemFonts.cs
- QueryExpression.cs
- ComponentEvent.cs
- QueuePathEditor.cs
- DnsEndpointIdentity.cs
- DesignObjectWrapper.cs
- HitTestDrawingContextWalker.cs
- VirtualDirectoryMapping.cs
- TextChange.cs
- CollectionBase.cs
- HttpConfigurationSystem.cs
- Stacktrace.cs
- DiagnosticTraceSchemas.cs
- String.cs
- ReadOnlyNameValueCollection.cs
- Membership.cs
- WebServiceResponse.cs
- AssemblyCacheEntry.cs
- Block.cs
- SignatureSummaryDialog.cs
- UserUseLicenseDictionaryLoader.cs
- FileSystemEventArgs.cs
- ToolboxItemAttribute.cs
- ValidationErrorCollection.cs
- ProfileGroupSettings.cs
- PrintDialog.cs
- InputBinder.cs
- UndirectedGraph.cs
- FacetDescriptionElement.cs
- TextBlockAutomationPeer.cs
- WebReferenceCollection.cs
- BamlRecordReader.cs
- BaseTypeViewSchema.cs
- PageSettings.cs
- BindStream.cs
- ServiceMetadataContractBehavior.cs
- CalendarModeChangedEventArgs.cs
- FrameworkPropertyMetadata.cs
- contentDescriptor.cs
- FormatConvertedBitmap.cs
- BooleanSwitch.cs
- OdbcErrorCollection.cs
- ArgumentNullException.cs
- ActivatedMessageQueue.cs
- RadioButton.cs
- Timer.cs
- SpecialNameAttribute.cs
- sqlstateclientmanager.cs
- SqlDependencyListener.cs
- IsolatedStorage.cs
- UnSafeCharBuffer.cs
- CanonicalizationDriver.cs
- TextBoxAutomationPeer.cs
- LineGeometry.cs
- dataobject.cs
- ActivityExecutorSurrogate.cs