Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TextTreePropertyUndoUnit.cs
- WebPartConnectionsCancelVerb.cs
- VScrollBar.cs
- WebPartConnectionCollection.cs
- TheQuery.cs
- CompilerWrapper.cs
- PerformanceCounterCategory.cs
- CssClassPropertyAttribute.cs
- XmlILIndex.cs
- BoundingRectTracker.cs
- RolePrincipal.cs
- ConnectionStringSettings.cs
- ScriptControlDescriptor.cs
- MessagePropertyVariants.cs
- SingleAnimationUsingKeyFrames.cs
- AttributeTable.cs
- InterleavedZipPartStream.cs
- SchemaElementDecl.cs
- ActivityDesignerLayoutSerializers.cs
- CollectionBuilder.cs
- CompilerInfo.cs
- HttpTransportSecurityElement.cs
- HttpAsyncResult.cs
- DefaultValueAttribute.cs
- Pen.cs
- StylusOverProperty.cs
- CalendarData.cs
- Row.cs
- Transform3DGroup.cs
- BamlLocalizableResourceKey.cs
- SafeProcessHandle.cs
- ComPlusTraceRecord.cs
- SHA384.cs
- PersonalizationEntry.cs
- TraceContextEventArgs.cs
- TextView.cs
- ValueTable.cs
- SaveFileDialog.cs
- NameValuePermission.cs
- AppSecurityManager.cs
- TextBlock.cs
- CompositeDataBoundControl.cs
- GeometryCollection.cs
- OperatorExpressions.cs
- ServiceBusyException.cs
- TypeToTreeConverter.cs
- ContentFilePart.cs
- IndexedEnumerable.cs
- XamlTypeMapper.cs
- ErrorEventArgs.cs
- PersonalizationStateInfoCollection.cs
- ModifierKeysConverter.cs
- DrawListViewSubItemEventArgs.cs
- ValidationPropertyAttribute.cs
- VerificationAttribute.cs
- BitmapEffectInput.cs
- StopStoryboard.cs
- ProjectionCamera.cs
- CaseInsensitiveComparer.cs
- RadioButtonList.cs
- BindingManagerDataErrorEventArgs.cs
- ControlBuilderAttribute.cs
- CustomAttribute.cs
- Matrix3DStack.cs
- XPathPatternParser.cs
- PropertyStore.cs
- ChannelFactoryRefCache.cs
- ZipIOExtraFieldPaddingElement.cs
- DesignConnectionCollection.cs
- TreeNodeSelectionProcessor.cs
- XPathNavigator.cs
- Timer.cs
- MsiStyleLogWriter.cs
- QilInvoke.cs
- PathGeometry.cs
- EditorBrowsableAttribute.cs
- ConsoleKeyInfo.cs
- TextEffectCollection.cs
- Publisher.cs
- VariantWrapper.cs
- Rotation3D.cs
- WebPartAddingEventArgs.cs
- ZipPackagePart.cs
- ProbeMatchesCD1.cs
- UpdatePanelTriggerCollection.cs
- FormatterServicesNoSerializableCheck.cs
- SqlMethodAttribute.cs
- CodeRemoveEventStatement.cs
- TransformGroup.cs
- CapabilitiesPattern.cs
- FixedTextSelectionProcessor.cs
- OletxCommittableTransaction.cs
- NetworkStream.cs
- FormViewDesigner.cs
- QilStrConcatenator.cs
- XmlSerializableReader.cs
- AppSettingsSection.cs
- CodeGen.cs
- HtmlTextViewAdapter.cs
- OleDbCommand.cs