Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityCommandCompilationException.cs / 1 / EntityCommandCompilationException.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 CommandCompilation
///
/// 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 EntityCommandCompilationException : EntityException {
#region Constructors
///
/// initializes a new instance of EntityCommandCompilationException, no message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandCompilationException()
: base() {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance of EntityCommandCompilationException, with message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandCompilationException(string message)
: base(message) {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance of EntityCommandCompilationException with message and an inner exception instance
///
///
///
public EntityCommandCompilationException(string message, Exception innerException)
: base(message, innerException) {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance EntityCommandCompilationException with a given SerializationInfo and StreamingContext
///
///
///
private EntityCommandCompilationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext) {
HResult = HResults.CommandCompilation;
}
#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 CommandCompilation
///
/// 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 EntityCommandCompilationException : EntityException {
#region Constructors
///
/// initializes a new instance of EntityCommandCompilationException, no message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandCompilationException()
: base() {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance of EntityCommandCompilationException, with message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandCompilationException(string message)
: base(message) {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance of EntityCommandCompilationException with message and an inner exception instance
///
///
///
public EntityCommandCompilationException(string message, Exception innerException)
: base(message, innerException) {
HResult = HResults.CommandCompilation;
}
///
/// initializes a new instance EntityCommandCompilationException with a given SerializationInfo and StreamingContext
///
///
///
private EntityCommandCompilationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext) {
HResult = HResults.CommandCompilation;
}
#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
- SQLMoney.cs
- NamedElement.cs
- EmissiveMaterial.cs
- VirtualPathUtility.cs
- SiteOfOriginPart.cs
- ChineseLunisolarCalendar.cs
- AssemblyFilter.cs
- FlowDocumentView.cs
- DataSourceExpressionCollection.cs
- HandlerMappingMemo.cs
- ToolStripArrowRenderEventArgs.cs
- DataContractSet.cs
- DesignerDataSourceView.cs
- COM2PictureConverter.cs
- PointAnimationUsingPath.cs
- Label.cs
- lengthconverter.cs
- ScrollItemPattern.cs
- PageOutputColor.cs
- Stack.cs
- EntityDataSourceColumn.cs
- VScrollProperties.cs
- EraserBehavior.cs
- SqlBulkCopy.cs
- DocumentXPathNavigator.cs
- DBAsyncResult.cs
- TreeNodeSelectionProcessor.cs
- SoundPlayerAction.cs
- SystemIPv6InterfaceProperties.cs
- ZipIOExtraFieldElement.cs
- CaretElement.cs
- SQLDouble.cs
- MergablePropertyAttribute.cs
- ContentWrapperAttribute.cs
- RequestQueryProcessor.cs
- DecoratedNameAttribute.cs
- ErrorStyle.cs
- controlskin.cs
- WebPartConnectionsCloseVerb.cs
- ReflectionPermission.cs
- DataControlReference.cs
- IDictionary.cs
- AnchoredBlock.cs
- TraceContextRecord.cs
- LocalValueEnumerator.cs
- XmlSchemaType.cs
- DataListItem.cs
- ProfileSettingsCollection.cs
- RoleManagerEventArgs.cs
- smtpconnection.cs
- AtomicFile.cs
- ScrollChrome.cs
- TileBrush.cs
- WSHttpBindingCollectionElement.cs
- ExtendedProperty.cs
- Transform.cs
- IDispatchConstantAttribute.cs
- DispatcherProcessingDisabled.cs
- CharUnicodeInfo.cs
- Missing.cs
- LoadWorkflowCommand.cs
- Assert.cs
- CodeIndexerExpression.cs
- TraceSection.cs
- ObjectDataSourceDisposingEventArgs.cs
- SspiSafeHandles.cs
- EntityRecordInfo.cs
- MultilineStringConverter.cs
- Point4D.cs
- IEnumerable.cs
- NameTable.cs
- StorageEntityContainerMapping.cs
- SoapMessage.cs
- Screen.cs
- DataSourceSelectArguments.cs
- TraceFilter.cs
- AppSettingsReader.cs
- SmiTypedGetterSetter.cs
- DataGridColumnCollection.cs
- DBParameter.cs
- XPathNodeList.cs
- ControlParameter.cs
- SqlVisitor.cs
- SBCSCodePageEncoding.cs
- ObjectDataSourceMethodEditor.cs
- ErrorFormatterPage.cs
- StreamGeometry.cs
- DoubleLink.cs
- TypeElementCollection.cs
- XmlSchemaSequence.cs
- PixelFormatConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- TimeSpanParse.cs
- DefaultPropertyAttribute.cs
- panel.cs
- Debug.cs
- ChooseAction.cs
- Debugger.cs
- PageCopyCount.cs
- MultiPageTextView.cs