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
- TransactionScope.cs
- DataTableNewRowEvent.cs
- EntityViewGenerationAttribute.cs
- RegexCharClass.cs
- ZipIORawDataFileBlock.cs
- CollectionsUtil.cs
- PeerTransportListenAddressConverter.cs
- HttpResponseHeader.cs
- SmiContextFactory.cs
- _FixedSizeReader.cs
- TreeNodeSelectionProcessor.cs
- WorkItem.cs
- TransportSecurityProtocolFactory.cs
- UserMapPath.cs
- PageContent.cs
- NodeFunctions.cs
- ToolStripMenuItem.cs
- TransactionManager.cs
- PeerHopCountAttribute.cs
- DataTemplate.cs
- HMACSHA512.cs
- XmlSubtreeReader.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- BaseDataList.cs
- _ShellExpression.cs
- _DynamicWinsockMethods.cs
- DataRowCollection.cs
- SAPICategories.cs
- ExpressionCopier.cs
- SqlPersonalizationProvider.cs
- EnvelopedPkcs7.cs
- ObjectTag.cs
- EntityKey.cs
- Menu.cs
- Timer.cs
- Translator.cs
- WebAdminConfigurationHelper.cs
- TextElement.cs
- SystemNetHelpers.cs
- BufferModeSettings.cs
- SerializationEventsCache.cs
- RightsManagementEncryptedStream.cs
- DropShadowEffect.cs
- SignerInfo.cs
- VariableAction.cs
- Italic.cs
- XslVisitor.cs
- SecureStringHasher.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SiteMapDataSource.cs
- TemplateKeyConverter.cs
- DisposableCollectionWrapper.cs
- UnconditionalPolicy.cs
- DynamicMethod.cs
- MemberPath.cs
- SiteMapNode.cs
- StructuralCache.cs
- MaterializeFromAtom.cs
- ProviderBase.cs
- CodeGenerationManager.cs
- WebControlsSection.cs
- RemotingAttributes.cs
- WebEvents.cs
- PropertyEntry.cs
- SiteMapProvider.cs
- StateDesigner.cs
- RefreshPropertiesAttribute.cs
- COM2IDispatchConverter.cs
- LinkLabel.cs
- ManagementQuery.cs
- ConfigurationManagerHelperFactory.cs
- ConstNode.cs
- BuildManagerHost.cs
- FindCriteria11.cs
- DesignerVerb.cs
- OleDbDataAdapter.cs
- ExpressionNode.cs
- OrderedDictionary.cs
- ClientConfigurationSystem.cs
- ArgumentsParser.cs
- WindowsListViewSubItem.cs
- ApplicationServiceManager.cs
- TemplateParser.cs
- WorkflowViewService.cs
- CustomCredentialPolicy.cs
- BufferBuilder.cs
- ReferenceEqualityComparer.cs
- ItemsControlAutomationPeer.cs
- RadioButtonFlatAdapter.cs
- InputEventArgs.cs
- AttributedMetaModel.cs
- ColumnMapProcessor.cs
- HttpPostProtocolReflector.cs
- WebPartCancelEventArgs.cs
- LineVisual.cs
- AsymmetricKeyExchangeFormatter.cs
- ControlAdapter.cs
- StickyNote.cs
- StateWorkerRequest.cs
- MissingSatelliteAssemblyException.cs