Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SurrogateDataContract.cs
- DataComponentGenerator.cs
- SecurityElement.cs
- BoolLiteral.cs
- MembershipValidatePasswordEventArgs.cs
- PasswordBox.cs
- DBPropSet.cs
- InputLangChangeEvent.cs
- XmlEncoding.cs
- ResourcesChangeInfo.cs
- WindowsFont.cs
- EntityDataSourceSelectingEventArgs.cs
- PersistenceTask.cs
- DeclaredTypeValidatorAttribute.cs
- SubqueryRules.cs
- RemotingConfiguration.cs
- DesignerAttribute.cs
- UnsafeNativeMethods.cs
- BasicBrowserDialog.cs
- CommandEventArgs.cs
- NavigationPropertyEmitter.cs
- DataBindingHandlerAttribute.cs
- CroppedBitmap.cs
- Matrix3DConverter.cs
- BaseComponentEditor.cs
- Utils.cs
- DBSchemaTable.cs
- SettingsProperty.cs
- SystemIPInterfaceStatistics.cs
- SafeHandle.cs
- RowParagraph.cs
- CompositeTypefaceMetrics.cs
- PersonalizationStateInfoCollection.cs
- CDSsyncETWBCLProvider.cs
- Geometry3D.cs
- WeakReferenceKey.cs
- IndividualDeviceConfig.cs
- EdmConstants.cs
- AspNetPartialTrustHelpers.cs
- ToolTipAutomationPeer.cs
- ThreadPool.cs
- StateDesigner.LayoutSelectionGlyph.cs
- RegexCharClass.cs
- ThreadPoolTaskScheduler.cs
- ControlParser.cs
- KnownTypes.cs
- NullReferenceException.cs
- DelegateBodyWriter.cs
- MetadataItemEmitter.cs
- SafePointer.cs
- ColorBlend.cs
- NGCPageContentSerializerAsync.cs
- FormViewUpdateEventArgs.cs
- TraceListener.cs
- AppDomainShutdownMonitor.cs
- odbcmetadatacollectionnames.cs
- ConsoleCancelEventArgs.cs
- CompensationParticipant.cs
- BitmapSourceSafeMILHandle.cs
- RawStylusActions.cs
- RegexBoyerMoore.cs
- IsolatedStorageException.cs
- SingleConverter.cs
- StyleTypedPropertyAttribute.cs
- XmlSchemaAttribute.cs
- remotingproxy.cs
- DrawingBrush.cs
- DeploymentSection.cs
- KeyInterop.cs
- MonthChangedEventArgs.cs
- CollectionType.cs
- SystemFonts.cs
- AggregateException.cs
- EventTrigger.cs
- EasingKeyFrames.cs
- DesignerDataColumn.cs
- InputReportEventArgs.cs
- MailHeaderInfo.cs
- CodeCatchClauseCollection.cs
- GifBitmapEncoder.cs
- WebPartCancelEventArgs.cs
- GroupQuery.cs
- NullableIntAverageAggregationOperator.cs
- DataColumnCollection.cs
- SqlSelectStatement.cs
- FontUnitConverter.cs
- IISUnsafeMethods.cs
- StylusPointDescription.cs
- LinqExpressionNormalizer.cs
- SqlFormatter.cs
- EditorPartChrome.cs
- QueryTaskGroupState.cs
- DataGridViewRowsAddedEventArgs.cs
- ExpressionPrinter.cs
- TimeSpanSecondsConverter.cs
- MetadataSerializer.cs
- ListViewGroupConverter.cs
- _RequestLifetimeSetter.cs
- ApplicationActivator.cs
- ImageBrush.cs