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
- FontFamilyConverter.cs
- RequestStatusBarUpdateEventArgs.cs
- HierarchicalDataSourceControl.cs
- HttpHandlerActionCollection.cs
- TableLayoutStyleCollection.cs
- TableChangeProcessor.cs
- COM2Properties.cs
- XmlCustomFormatter.cs
- DebugView.cs
- ServicePointManagerElement.cs
- DocumentStream.cs
- XmlSchemaSubstitutionGroup.cs
- Ops.cs
- OdbcEnvironment.cs
- FocusManager.cs
- Base64Decoder.cs
- SystemParameters.cs
- Tokenizer.cs
- GridLength.cs
- ValueChangedEventManager.cs
- SettingsContext.cs
- securitycriticaldata.cs
- NavigationProperty.cs
- IgnoreDataMemberAttribute.cs
- ProcessDesigner.cs
- ArgumentOutOfRangeException.cs
- WebPartMenu.cs
- SqlCacheDependencyDatabase.cs
- dtdvalidator.cs
- SplitterCancelEvent.cs
- SchemaCollectionCompiler.cs
- QueryGenerator.cs
- DecoderReplacementFallback.cs
- Transform3DGroup.cs
- HierarchicalDataTemplate.cs
- EmptyElement.cs
- FontInfo.cs
- WsatConfiguration.cs
- QueryExpr.cs
- SelectionEditingBehavior.cs
- WmlPanelAdapter.cs
- DiscriminatorMap.cs
- util.cs
- ComplexTypeEmitter.cs
- SecurityToken.cs
- DbProviderFactoriesConfigurationHandler.cs
- ContentValidator.cs
- controlskin.cs
- ListView.cs
- SourceChangedEventArgs.cs
- _FtpDataStream.cs
- ArgumentOutOfRangeException.cs
- regiisutil.cs
- unsafeIndexingFilterStream.cs
- SendMailErrorEventArgs.cs
- ITextView.cs
- shaperfactoryquerycachekey.cs
- CodeTypeReferenceCollection.cs
- DataGridPagingPage.cs
- MissingMethodException.cs
- X509Extension.cs
- XmlILOptimizerVisitor.cs
- Animatable.cs
- NamespaceMapping.cs
- XsltOutput.cs
- AxHost.cs
- Brushes.cs
- DynamicMethod.cs
- RegisteredDisposeScript.cs
- RecordManager.cs
- XsltException.cs
- TypefaceCollection.cs
- XmlIgnoreAttribute.cs
- ListChangedEventArgs.cs
- TabPage.cs
- RootProfilePropertySettingsCollection.cs
- CardSpaceShim.cs
- PositiveTimeSpanValidatorAttribute.cs
- FormViewUpdatedEventArgs.cs
- StringUtil.cs
- HtmlButton.cs
- DbConnectionPoolCounters.cs
- ContextProperty.cs
- SafeArrayTypeMismatchException.cs
- ApplicationServiceHelper.cs
- DNS.cs
- AutoGeneratedField.cs
- GuidConverter.cs
- CapabilitiesRule.cs
- DataPagerField.cs
- FtpWebResponse.cs
- SystemUnicastIPAddressInformation.cs
- XhtmlConformanceSection.cs
- PolicyLevel.cs
- RowToFieldTransformer.cs
- FormClosingEvent.cs
- WebBrowserNavigatedEventHandler.cs
- Pair.cs
- DataColumnCollection.cs
- RecognizedPhrase.cs