Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1305376 / 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
- PageVisual.cs
- HtmlElementCollection.cs
- LocalBuilder.cs
- Point3DCollectionValueSerializer.cs
- PenThreadPool.cs
- InputScopeManager.cs
- BooleanConverter.cs
- XmlLanguageConverter.cs
- DBPropSet.cs
- XmlEventCache.cs
- ValueUtilsSmi.cs
- SendMailErrorEventArgs.cs
- OracleDataReader.cs
- ReflectionTypeLoadException.cs
- NonDualMessageSecurityOverHttp.cs
- QuaternionAnimationBase.cs
- CqlQuery.cs
- ListCommandEventArgs.cs
- ServiceActivationException.cs
- TableStyle.cs
- SQLSingle.cs
- WasAdminWrapper.cs
- RunWorkerCompletedEventArgs.cs
- ConfigXmlElement.cs
- CustomValidator.cs
- Shared.cs
- VisualTreeFlattener.cs
- BaseEntityWrapper.cs
- EventProviderTraceListener.cs
- PrintingPermissionAttribute.cs
- GB18030Encoding.cs
- RSAPKCS1SignatureFormatter.cs
- SubqueryRules.cs
- SqlGatherConsumedAliases.cs
- _HTTPDateParse.cs
- PolyQuadraticBezierSegment.cs
- NullableConverter.cs
- controlskin.cs
- ErrorsHelper.cs
- FormsAuthenticationCredentials.cs
- IdentityModelStringsVersion1.cs
- QilVisitor.cs
- VersionedStreamOwner.cs
- FunctionCommandText.cs
- InvokeGenerator.cs
- SettingsContext.cs
- IOThreadTimer.cs
- Serializer.cs
- Terminate.cs
- InputReportEventArgs.cs
- ManagedIStream.cs
- SizeAnimationBase.cs
- RankException.cs
- BitmapDownload.cs
- BitmapSource.cs
- QueryStringHandler.cs
- InternalSafeNativeMethods.cs
- InvalidDataException.cs
- SvcMapFileSerializer.cs
- SqlParameterCollection.cs
- LayoutTable.cs
- SchemaObjectWriter.cs
- Property.cs
- TablePattern.cs
- QilVisitor.cs
- OfTypeExpression.cs
- ZoomPercentageConverter.cs
- EventLog.cs
- SizeValueSerializer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- hresults.cs
- FontResourceCache.cs
- ListSortDescription.cs
- SqlEnums.cs
- MembershipPasswordException.cs
- BindingList.cs
- PropertyEntry.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Dump.cs
- ObjectManager.cs
- SystemWebSectionGroup.cs
- sqlnorm.cs
- ServiceHostingEnvironment.cs
- TextTrailingWordEllipsis.cs
- FreeFormPanel.cs
- IsolationInterop.cs
- CommandID.cs
- XPathException.cs
- AlignmentXValidation.cs
- SingleConverter.cs
- InputMethodStateChangeEventArgs.cs
- datacache.cs
- DataServiceSaveChangesEventArgs.cs
- TrustManager.cs
- TemplateColumn.cs
- RelatedImageListAttribute.cs
- ServiceDeploymentInfo.cs
- Content.cs
- HighContrastHelper.cs
- StrokeRenderer.cs