Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1305376 / EntityDataSourceChangingEventArgs.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects; namespace System.Web.UI.WebControls { public class EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangingEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public object Entity { get { return _entity; } } public ObjectContext Context { get { return _context; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects; namespace System.Web.UI.WebControls { public class EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangingEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public object Entity { get { return _entity; } } public ObjectContext Context { get { return _context; } } } } // 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
- DataAdapter.cs
- DataGridRowEventArgs.cs
- FormDocumentDesigner.cs
- GroupBoxAutomationPeer.cs
- CornerRadius.cs
- SingleAnimationUsingKeyFrames.cs
- SqlUnionizer.cs
- AddingNewEventArgs.cs
- XappLauncher.cs
- XmlSerializerOperationBehavior.cs
- glyphs.cs
- TextParagraphProperties.cs
- BridgeDataRecord.cs
- DoubleLinkListEnumerator.cs
- SqlDataSourceWizardForm.cs
- SynchronizedInputPattern.cs
- MulticastNotSupportedException.cs
- ColorMap.cs
- RoutedEventArgs.cs
- ListBindingConverter.cs
- ISAPIRuntime.cs
- PhysicalFontFamily.cs
- KeyGesture.cs
- UnsafeNativeMethods.cs
- DocumentOrderQuery.cs
- XamlToRtfParser.cs
- TextEffect.cs
- SetIndexBinder.cs
- ServicePoint.cs
- GuidTagList.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- SqlCharStream.cs
- Matrix.cs
- ButtonDesigner.cs
- RelationshipDetailsCollection.cs
- TransactionsSectionGroup.cs
- ScrollChrome.cs
- PreviewKeyDownEventArgs.cs
- CornerRadius.cs
- WebPartZoneDesigner.cs
- HttpStreamFormatter.cs
- SHA384Managed.cs
- HttpModulesSection.cs
- DataGridViewHeaderCell.cs
- DSASignatureFormatter.cs
- ByteConverter.cs
- isolationinterop.cs
- Cursor.cs
- RowToParametersTransformer.cs
- Recipient.cs
- DetailsViewDeleteEventArgs.cs
- EventSchemaTraceListener.cs
- StructuredProperty.cs
- CodePrimitiveExpression.cs
- UpdatePanelControlTrigger.cs
- HtmlMeta.cs
- SafeBitVector32.cs
- WarningException.cs
- TrustLevel.cs
- SubMenuStyleCollection.cs
- GCHandleCookieTable.cs
- Missing.cs
- PngBitmapEncoder.cs
- ThreadNeutralSemaphore.cs
- ThemeableAttribute.cs
- ZipIOExtraFieldElement.cs
- EndpointIdentityExtension.cs
- DCSafeHandle.cs
- SerializationInfo.cs
- SemanticKeyElement.cs
- HttpStreamFormatter.cs
- EventDescriptorCollection.cs
- OperationSelectorBehavior.cs
- TcpChannelHelper.cs
- formatter.cs
- _NestedMultipleAsyncResult.cs
- XmlValueConverter.cs
- DocumentXmlWriter.cs
- sqlpipe.cs
- SqlConnectionPoolProviderInfo.cs
- Html32TextWriter.cs
- HybridDictionary.cs
- PolygonHotSpot.cs
- WebZoneDesigner.cs
- XpsFixedDocumentReaderWriter.cs
- SafeLocalMemHandle.cs
- SendMailErrorEventArgs.cs
- UrlMappingCollection.cs
- WindowsSlider.cs
- XmlElementCollection.cs
- ValueUnavailableException.cs
- ImageIndexConverter.cs
- SoapSchemaExporter.cs
- XamlToRtfParser.cs
- TimeSpan.cs
- IncrementalReadDecoders.cs
- PixelShader.cs
- OperatingSystem.cs
- XPathNodeList.cs
- UnsafeNativeMethodsMilCoreApi.cs