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
- Expression.cs
- SQLByte.cs
- Rijndael.cs
- XmlSchemaCompilationSettings.cs
- Fx.cs
- VisualBasicValue.cs
- SmtpClient.cs
- XhtmlTextWriter.cs
- FlatButtonAppearance.cs
- ExpressionBinding.cs
- Hyperlink.cs
- ControlBindingsCollection.cs
- RNGCryptoServiceProvider.cs
- UTF32Encoding.cs
- InstanceValue.cs
- sortedlist.cs
- ConstraintEnumerator.cs
- RequestStatusBarUpdateEventArgs.cs
- DesignerVerb.cs
- PrintingPermission.cs
- QilDataSource.cs
- LinearGradientBrush.cs
- SerializationSectionGroup.cs
- InkCanvasSelection.cs
- CSharpCodeProvider.cs
- GB18030Encoding.cs
- UriTemplateCompoundPathSegment.cs
- ThrowHelper.cs
- Transform.cs
- SharedUtils.cs
- AuthenticationConfig.cs
- SQLGuid.cs
- GeneralTransformGroup.cs
- DocumentCollection.cs
- SqlFunctions.cs
- MultiPageTextView.cs
- FileAuthorizationModule.cs
- StateMachine.cs
- AnnotationHelper.cs
- HtmlEmptyTagControlBuilder.cs
- GridToolTip.cs
- MenuItemBinding.cs
- WebPartRestoreVerb.cs
- ValidationSummary.cs
- PropertyDescriptorGridEntry.cs
- ElapsedEventArgs.cs
- ContainerTracking.cs
- StylusPoint.cs
- AssociationSet.cs
- ByteStack.cs
- CodeAttributeArgument.cs
- MailWebEventProvider.cs
- TypeToArgumentTypeConverter.cs
- SafeViewOfFileHandle.cs
- SaveFileDialog.cs
- ConfigXmlSignificantWhitespace.cs
- GridViewRowPresenterBase.cs
- UrlMappingsModule.cs
- TraceHandlerErrorFormatter.cs
- GC.cs
- WebHttpBinding.cs
- BufferAllocator.cs
- EntityCommandDefinition.cs
- XmlEnumAttribute.cs
- GetRecipientRequest.cs
- SizeAnimationBase.cs
- RemoteWebConfigurationHost.cs
- ErrorFormatterPage.cs
- Rect3D.cs
- XmlSchemaAll.cs
- AdornerHitTestResult.cs
- CornerRadiusConverter.cs
- EntityContainerEmitter.cs
- DbConnectionPoolIdentity.cs
- InputReferenceExpression.cs
- CustomWebEventKey.cs
- InputProcessorProfiles.cs
- EasingFunctionBase.cs
- ObjectViewQueryResultData.cs
- WebPartTransformerCollection.cs
- Win32.cs
- MembershipUser.cs
- ListBindableAttribute.cs
- XmlSchemaAttribute.cs
- StylusButtonEventArgs.cs
- Int32Collection.cs
- FixedSOMTable.cs
- ToolStripContextMenu.cs
- SqlBulkCopyColumnMappingCollection.cs
- WindowsUpDown.cs
- Parser.cs
- HashAlgorithm.cs
- SystemIcmpV6Statistics.cs
- Panel.cs
- PolyBezierSegment.cs
- AppDomainFactory.cs
- TimeIntervalCollection.cs
- MarshalDirectiveException.cs
- HtmlControlPersistable.cs
- XPathArrayIterator.cs