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
- ListItemCollection.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Unit.cs
- FixedSOMSemanticBox.cs
- ASCIIEncoding.cs
- xamlnodes.cs
- ItemsChangedEventArgs.cs
- RelationshipConverter.cs
- SqlConnectionPoolProviderInfo.cs
- DataGridViewTextBoxEditingControl.cs
- IERequestCache.cs
- DrawListViewItemEventArgs.cs
- Metafile.cs
- DBConnectionString.cs
- ScrollBar.cs
- FileVersionInfo.cs
- EventLogConfiguration.cs
- DataBindingCollection.cs
- Thumb.cs
- DecoderNLS.cs
- EntityClassGenerator.cs
- DirectoryObjectSecurity.cs
- _NetRes.cs
- versioninfo.cs
- ClientSettingsSection.cs
- PropertyValueUIItem.cs
- CompensatableTransactionScopeActivity.cs
- EncodingNLS.cs
- BindingObserver.cs
- HandleScope.cs
- SqlClientWrapperSmiStream.cs
- DoubleStorage.cs
- TableRow.cs
- DateTimeOffset.cs
- Roles.cs
- SqlFileStream.cs
- RenderData.cs
- GridView.cs
- SafePointer.cs
- DefaultTraceListener.cs
- FormatStringEditor.cs
- HtmlWindow.cs
- NativeMethods.cs
- DocumentReferenceCollection.cs
- VisualProxy.cs
- SplashScreenNativeMethods.cs
- ResourcesBuildProvider.cs
- SettingsProviderCollection.cs
- COM2Properties.cs
- DataReaderContainer.cs
- TextTreeTextBlock.cs
- UntypedNullExpression.cs
- VisualBrush.cs
- ListenUriMode.cs
- _NetworkingPerfCounters.cs
- ConfigDefinitionUpdates.cs
- AlignmentXValidation.cs
- SmiConnection.cs
- DataGridViewCellCancelEventArgs.cs
- PropertyGridEditorPart.cs
- SharedUtils.cs
- BitmapCodecInfoInternal.cs
- NamespaceInfo.cs
- ConnectionProviderAttribute.cs
- SymbolMethod.cs
- MD5Cng.cs
- TableLayoutStyle.cs
- DataSourceControlBuilder.cs
- ControlAdapter.cs
- PnrpPeerResolver.cs
- DBSchemaRow.cs
- RegexNode.cs
- ConfigurationStrings.cs
- PrimitiveCodeDomSerializer.cs
- XmlCharacterData.cs
- Splitter.cs
- ObjectParameterCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ChannelCacheDefaults.cs
- Rotation3DAnimationUsingKeyFrames.cs
- WebControlAdapter.cs
- handlecollector.cs
- SettingsSavedEventArgs.cs
- ScriptReference.cs
- SizeAnimation.cs
- ElementAtQueryOperator.cs
- LogicalCallContext.cs
- WebBrowserDocumentCompletedEventHandler.cs
- CompressEmulationStream.cs
- HttpAsyncResult.cs
- DispatchChannelSink.cs
- SmiEventStream.cs
- ObjectDisposedException.cs
- prefixendpointaddressmessagefilter.cs
- SelectionListDesigner.cs
- ItemCollection.cs
- TemplateAction.cs
- WpfXamlMember.cs
- WeakEventManager.cs
- SqlDataRecord.cs