Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityCommandExecutionException.cs / 1 / EntityCommandExecutionException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] //--------------------------------------------------------------------- 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 [....] //--------------------------------------------------------------------- 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
- PointAnimationUsingPath.cs
- SafeNativeMethods.cs
- ExpressionBinding.cs
- IApplicationTrustManager.cs
- PlacementWorkspace.cs
- SimpleHandlerBuildProvider.cs
- ObjectListCommand.cs
- ActivationArguments.cs
- ModelPerspective.cs
- ValidationError.cs
- TextViewSelectionProcessor.cs
- SystemGatewayIPAddressInformation.cs
- SourceSwitch.cs
- DataTableNewRowEvent.cs
- securitycriticaldata.cs
- FastEncoderWindow.cs
- ProfileServiceManager.cs
- WinHttpWebProxyFinder.cs
- PingOptions.cs
- COM2Properties.cs
- ContractAdapter.cs
- Floater.cs
- OrderByExpression.cs
- RegisteredExpandoAttribute.cs
- ListViewPagedDataSource.cs
- MenuItem.cs
- HandoffBehavior.cs
- PropertyTabAttribute.cs
- ApplicationServiceHelper.cs
- XmlSchemaFacet.cs
- UniqueIdentifierService.cs
- WebScriptMetadataMessage.cs
- BamlLocalizationDictionary.cs
- HttpDebugHandler.cs
- ConfigurationManagerInternalFactory.cs
- CompatibleIComparer.cs
- exports.cs
- AddInBase.cs
- SqlPersonalizationProvider.cs
- DocumentPageView.cs
- MappingModelBuildProvider.cs
- OrderByBuilder.cs
- DelegateArgumentValue.cs
- SpotLight.cs
- BehaviorDragDropEventArgs.cs
- SqlSelectClauseBuilder.cs
- HandlerBase.cs
- XmlUtf8RawTextWriter.cs
- DataGridColumnCollectionEditor.cs
- ToolStrip.cs
- ConstraintConverter.cs
- Stack.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlCDATASection.cs
- BitmapFrameDecode.cs
- Function.cs
- DataGridViewDataConnection.cs
- LinqDataView.cs
- PropertyValidationContext.cs
- AuthStoreRoleProvider.cs
- AssociationTypeEmitter.cs
- TypeNameConverter.cs
- DispatcherTimer.cs
- ApplicationFileCodeDomTreeGenerator.cs
- _SpnDictionary.cs
- ImportContext.cs
- EntityDataSourceContainerNameConverter.cs
- SmtpFailedRecipientsException.cs
- TextServicesManager.cs
- SqlClientWrapperSmiStream.cs
- NamedElement.cs
- unitconverter.cs
- AuthenticationModuleElementCollection.cs
- HttpWriter.cs
- Msec.cs
- XAMLParseException.cs
- COAUTHINFO.cs
- BindValidationContext.cs
- HostedBindingBehavior.cs
- ToolStripItemBehavior.cs
- BaseAddressPrefixFilterElement.cs
- ThreadAbortException.cs
- ProfileInfo.cs
- PanelStyle.cs
- SslStream.cs
- PersianCalendar.cs
- UiaCoreTypesApi.cs
- ConfigurationSectionCollection.cs
- WebControl.cs
- StringOutput.cs
- SectionVisual.cs
- HttpCookiesSection.cs
- MexHttpBindingElement.cs
- XNodeValidator.cs
- _Events.cs
- WebBrowserBase.cs
- InputLanguageProfileNotifySink.cs
- GACIdentityPermission.cs
- EventTrigger.cs
- XmlSchemaObject.cs