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
- XsltOutput.cs
- RequiredAttributeAttribute.cs
- InertiaRotationBehavior.cs
- PersistChildrenAttribute.cs
- EventToken.cs
- MachineKeyConverter.cs
- FormattedTextSymbols.cs
- SizeAnimation.cs
- ProviderConnectionPoint.cs
- SafeRightsManagementEnvironmentHandle.cs
- FlowchartStart.xaml.cs
- CodeTypeReferenceExpression.cs
- CacheAxisQuery.cs
- ObsoleteAttribute.cs
- ProxyGenerator.cs
- CustomAttribute.cs
- ThreadStartException.cs
- WebRequest.cs
- ModelPropertyDescriptor.cs
- DataGridViewCellStateChangedEventArgs.cs
- DefaultPropertyAttribute.cs
- InstanceDescriptor.cs
- XXXOnTypeBuilderInstantiation.cs
- ErrorProvider.cs
- GrammarBuilderPhrase.cs
- Inline.cs
- MemberBinding.cs
- FixedSOMFixedBlock.cs
- RegexGroupCollection.cs
- TabItem.cs
- Condition.cs
- AttributeXamlType.cs
- ISessionStateStore.cs
- CompiledQuery.cs
- XmlSecureResolver.cs
- OutputCacheProfile.cs
- SponsorHelper.cs
- QilPatternFactory.cs
- SqlMetaData.cs
- TextCompositionEventArgs.cs
- WindowsSpinner.cs
- CanonicalXml.cs
- TextRunCacheImp.cs
- Decimal.cs
- _CookieModule.cs
- EdmType.cs
- WindowsScrollBar.cs
- PropertyToken.cs
- BamlLocalizationDictionary.cs
- AuthenticationModuleElementCollection.cs
- SQLChars.cs
- DrawingContext.cs
- IndexedEnumerable.cs
- CompositeFontFamily.cs
- PermissionSetEnumerator.cs
- GeometryGroup.cs
- WebScriptEnablingBehavior.cs
- nulltextcontainer.cs
- AssociatedControlConverter.cs
- DataListItem.cs
- PolyLineSegmentFigureLogic.cs
- Lasso.cs
- WorkflowInstance.cs
- IDQuery.cs
- ConditionCollection.cs
- Substitution.cs
- ArraySet.cs
- HScrollProperties.cs
- ColumnResizeUndoUnit.cs
- DiagnosticTrace.cs
- PreservationFileWriter.cs
- ArrayTypeMismatchException.cs
- InfoCardClaimCollection.cs
- HijriCalendar.cs
- Button.cs
- XmlEventCache.cs
- ValidationRuleCollection.cs
- ToolBarOverflowPanel.cs
- SmiMetaDataProperty.cs
- CodeExporter.cs
- StringWriter.cs
- EntityDataSourceReferenceGroup.cs
- PointHitTestParameters.cs
- XmlSchema.cs
- RowBinding.cs
- TriggerAction.cs
- NamespaceListProperty.cs
- DrawingAttributes.cs
- SystemPens.cs
- StylusPlugin.cs
- ConfigsHelper.cs
- DetailsViewInsertedEventArgs.cs
- MessageBox.cs
- DataRecordInfo.cs
- Activity.cs
- WebPartVerbCollection.cs
- DataBindEngine.cs
- DataBindingHandlerAttribute.cs
- SecurityChannelListener.cs
- ArrangedElement.cs