Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- UICuesEvent.cs
- ElementProxy.cs
- BindValidator.cs
- Token.cs
- ToolboxComponentsCreatingEventArgs.cs
- AspCompat.cs
- WebPartEditorOkVerb.cs
- XPathDocumentNavigator.cs
- CompletedAsyncResult.cs
- XmlLanguage.cs
- HotSpotCollection.cs
- ModelUIElement3D.cs
- ScriptModule.cs
- UnsafeNativeMethods.cs
- InstanceCreationEditor.cs
- CodePageEncoding.cs
- MergePropertyDescriptor.cs
- XamlReader.cs
- DataGridViewSelectedRowCollection.cs
- DocumentViewerAutomationPeer.cs
- MetadataSource.cs
- StatusStrip.cs
- MultiAsyncResult.cs
- TickBar.cs
- NumberFormatter.cs
- RoleService.cs
- WindowPattern.cs
- COAUTHINFO.cs
- StorageMappingItemCollection.cs
- DataContractFormatAttribute.cs
- MsmqTransportReceiveParameters.cs
- Quaternion.cs
- HttpHandlersSection.cs
- CheckPair.cs
- PickDesigner.xaml.cs
- BaseHashHelper.cs
- TextProviderWrapper.cs
- _SslSessionsCache.cs
- DesignOnlyAttribute.cs
- EntityKeyElement.cs
- SettingsPropertyValue.cs
- OleDbTransaction.cs
- DataGridAutoFormatDialog.cs
- ReferenceEqualityComparer.cs
- SectionInput.cs
- TransformCryptoHandle.cs
- FileDialogCustomPlacesCollection.cs
- TextPointer.cs
- EncodingStreamWrapper.cs
- WindowsListViewItem.cs
- DataGridColumnHeaderCollection.cs
- ListViewPagedDataSource.cs
- MulticastNotSupportedException.cs
- PermissionSetEnumerator.cs
- ToggleProviderWrapper.cs
- VariantWrapper.cs
- ApplicationServiceHelper.cs
- ToolStripRendererSwitcher.cs
- Model3D.cs
- RelationshipWrapper.cs
- ParentQuery.cs
- ValidatorCompatibilityHelper.cs
- MarkupWriter.cs
- BaseAddressPrefixFilterElementCollection.cs
- PeerNameRecordCollection.cs
- CursorConverter.cs
- AudioDeviceOut.cs
- VectorAnimationUsingKeyFrames.cs
- SignerInfo.cs
- ToolStripItemGlyph.cs
- CheckBox.cs
- WindowsNonControl.cs
- TypeDelegator.cs
- WebPartAuthorizationEventArgs.cs
- SignedPkcs7.cs
- TreeNodeSelectionProcessor.cs
- DataViewSettingCollection.cs
- CodeAttributeDeclarationCollection.cs
- ByeMessageApril2005.cs
- EdmItemCollection.cs
- UnsafeNativeMethods.cs
- UIntPtr.cs
- XPathNode.cs
- Win32Exception.cs
- ClientScriptManager.cs
- XamlStyleSerializer.cs
- RootBrowserWindowProxy.cs
- Command.cs
- DataKey.cs
- HwndHostAutomationPeer.cs
- DbReferenceCollection.cs
- ResolveMatchesCD1.cs
- Sql8ConformanceChecker.cs
- DataTemplate.cs
- TemplatedMailWebEventProvider.cs
- StringValueSerializer.cs
- NameTable.cs
- StringDictionary.cs
- SamlAuthorizationDecisionClaimResource.cs
- BitmapMetadataEnumerator.cs