Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1 / 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
- DBBindings.cs
- TextServicesPropertyRanges.cs
- CmsInterop.cs
- AutomationElementCollection.cs
- LinearGradientBrush.cs
- TextFindEngine.cs
- DesignerActionUI.cs
- SQLCharsStorage.cs
- RadioButton.cs
- FragmentNavigationEventArgs.cs
- SystemColors.cs
- InfiniteTimeSpanConverter.cs
- UserControlBuildProvider.cs
- FileStream.cs
- DataRecordInternal.cs
- HotSpotCollection.cs
- ScriptResourceHandler.cs
- ContentControl.cs
- SQLMoneyStorage.cs
- EndpointInfo.cs
- TargetPerspective.cs
- HttpRuntime.cs
- Rijndael.cs
- Compilation.cs
- PopupRoot.cs
- AuthenticationException.cs
- LayoutManager.cs
- MessageLogger.cs
- DataGridViewButtonColumn.cs
- MetadataPropertyAttribute.cs
- RemoteWebConfigurationHostStream.cs
- AxHost.cs
- SplayTreeNode.cs
- ProfileSection.cs
- DigitShape.cs
- SimpleLine.cs
- OciEnlistContext.cs
- UIPermission.cs
- OAVariantLib.cs
- OdbcConnectionPoolProviderInfo.cs
- ConsoleEntryPoint.cs
- LicFileLicenseProvider.cs
- ItemList.cs
- WebGetAttribute.cs
- HtmlInputHidden.cs
- InheritedPropertyDescriptor.cs
- SqlDataReader.cs
- BaseConfigurationRecord.cs
- WinOEToolBoxItem.cs
- InputProcessorProfiles.cs
- EntryIndex.cs
- ToolStripSystemRenderer.cs
- StorageMappingFragment.cs
- ObjectTypeMapping.cs
- ScrollViewerAutomationPeer.cs
- SparseMemoryStream.cs
- FacetChecker.cs
- SqlDataSourceEnumerator.cs
- WindowsFormsHelpers.cs
- TabControl.cs
- GeneralTransform3D.cs
- Timer.cs
- WorkflowDebuggerSteppingAttribute.cs
- ReaderWriterLock.cs
- TabItemAutomationPeer.cs
- ModulesEntry.cs
- SymbolTable.cs
- MetroSerializationManager.cs
- SqlParameterCollection.cs
- ResourceDescriptionAttribute.cs
- EntityTypeEmitter.cs
- AssociationSetEnd.cs
- DispatcherExceptionEventArgs.cs
- TabControl.cs
- FileSystemWatcher.cs
- WebPageTraceListener.cs
- ArrayTypeMismatchException.cs
- X509CertificateValidator.cs
- Certificate.cs
- QueryPageSettingsEventArgs.cs
- MonitorWrapper.cs
- PrintController.cs
- ItemCheckEvent.cs
- FormViewRow.cs
- LowerCaseStringConverter.cs
- IOException.cs
- GuidConverter.cs
- ThemeableAttribute.cs
- DependencyPropertyKind.cs
- FrameworkObject.cs
- DiffuseMaterial.cs
- COM2Properties.cs
- HwndSubclass.cs
- TemplateLookupAction.cs
- ResizeBehavior.cs
- SqlProviderUtilities.cs
- XmlSerializerOperationGenerator.cs
- EntityDataSourceContainerNameItem.cs
- WsrmFault.cs
- EraserBehavior.cs