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
- SqlConnectionStringBuilder.cs
- Int32RectConverter.cs
- DateTimeConverter2.cs
- TypedTableHandler.cs
- XmlNodeChangedEventArgs.cs
- MissingSatelliteAssemblyException.cs
- Soap12FormatExtensions.cs
- MethodSignatureGenerator.cs
- WorkflowDesignerColors.cs
- LayoutSettings.cs
- UICuesEvent.cs
- TreeBuilder.cs
- CodeDomSerializer.cs
- RtType.cs
- EventHandlersStore.cs
- VisualState.cs
- DecimalSumAggregationOperator.cs
- XmlFormatWriterGenerator.cs
- HelpOperationInvoker.cs
- WSHttpBindingBaseElement.cs
- MenuItem.cs
- CodeCastExpression.cs
- XmlReflectionImporter.cs
- RubberbandSelector.cs
- PrintPreviewDialog.cs
- PointLight.cs
- DataControlFieldCell.cs
- TypeForwardedToAttribute.cs
- PropertyCondition.cs
- SharedStatics.cs
- SyntaxCheck.cs
- HashAlgorithm.cs
- DriveInfo.cs
- TabControlCancelEvent.cs
- ButtonField.cs
- DataGridViewMethods.cs
- XmlComment.cs
- FileSystemEventArgs.cs
- TemplateContentLoader.cs
- BitmapVisualManager.cs
- OdbcCommandBuilder.cs
- Validator.cs
- CanExecuteRoutedEventArgs.cs
- TabControlAutomationPeer.cs
- PrePostDescendentsWalker.cs
- DLinqTableProvider.cs
- RequestSecurityToken.cs
- ScrollChrome.cs
- ToolStripItemImageRenderEventArgs.cs
- PhysicalOps.cs
- MultiSelectRootGridEntry.cs
- Properties.cs
- PcmConverter.cs
- DataViewManagerListItemTypeDescriptor.cs
- ImageBrush.cs
- MethodCallConverter.cs
- Filter.cs
- WebControl.cs
- XmlRootAttribute.cs
- SerializerProvider.cs
- TcpDuplicateContext.cs
- ProgressBar.cs
- AppAction.cs
- MultiAsyncResult.cs
- TextEffect.cs
- CalculatedColumn.cs
- ResourceDescriptionAttribute.cs
- BasicExpandProvider.cs
- XmlNamespaceManager.cs
- CopyOnWriteList.cs
- CommandBinding.cs
- HyperLinkDesigner.cs
- DynamicILGenerator.cs
- ReadOnlyDictionary.cs
- ReadOnlyTernaryTree.cs
- ImmutableAssemblyCacheEntry.cs
- CommandSet.cs
- MgmtResManager.cs
- RepeaterItemEventArgs.cs
- HtmlTitle.cs
- ChannelManager.cs
- WebControlAdapter.cs
- Pair.cs
- CatalogPartCollection.cs
- HttpPostServerProtocol.cs
- PublisherIdentityPermission.cs
- IMembershipProvider.cs
- UnsafeNativeMethods.cs
- SafeNativeMemoryHandle.cs
- DataServiceQueryException.cs
- BindingExpressionUncommonField.cs
- GraphicsPath.cs
- ItemCollection.cs
- AccessibilityApplicationManager.cs
- Compress.cs
- DescendantQuery.cs
- ReflectionPermission.cs
- ElementNotEnabledException.cs
- NavigationPropertyEmitter.cs
- StylusEditingBehavior.cs