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
- LinqDataSourceUpdateEventArgs.cs
- ReadWriteSpinLock.cs
- XPathCompiler.cs
- ModuleElement.cs
- CannotUnloadAppDomainException.cs
- DataGridViewColumnConverter.cs
- Bezier.cs
- MulticastIPAddressInformationCollection.cs
- DataGridRelationshipRow.cs
- ClientTarget.cs
- Columns.cs
- DoubleLinkListEnumerator.cs
- OdbcTransaction.cs
- UnsafeNativeMethods.cs
- UIElementHelper.cs
- StringSource.cs
- XXXOnTypeBuilderInstantiation.cs
- SynchronizedInputPattern.cs
- XmlILStorageConverter.cs
- BinaryObjectInfo.cs
- IImplicitResourceProvider.cs
- DodSequenceMerge.cs
- XNodeNavigator.cs
- DataServiceQuery.cs
- SearchExpression.cs
- ErrorTableItemStyle.cs
- SafeSecurityHandles.cs
- WhileDesigner.cs
- DataGridItemAutomationPeer.cs
- ProcessHostMapPath.cs
- SystemUnicastIPAddressInformation.cs
- DocumentApplicationJournalEntry.cs
- PenContext.cs
- ProgressBar.cs
- ColorAnimationBase.cs
- SmiRecordBuffer.cs
- ImmutableObjectAttribute.cs
- DesignTimeTemplateParser.cs
- BaseServiceProvider.cs
- XMLSchema.cs
- EdgeModeValidation.cs
- AutomationPeer.cs
- ItemAutomationPeer.cs
- MDIClient.cs
- MetadataCollection.cs
- CalendarDesigner.cs
- RequiredFieldValidator.cs
- SkipQueryOptionExpression.cs
- NamespaceDecl.cs
- WebControl.cs
- WebSysDisplayNameAttribute.cs
- XmlDocument.cs
- listitem.cs
- InternalTransaction.cs
- GeometryValueSerializer.cs
- SafeUserTokenHandle.cs
- EventMappingSettings.cs
- ListViewInsertEventArgs.cs
- BaseCollection.cs
- ComEventsHelper.cs
- XsdBuildProvider.cs
- WebService.cs
- FileSystemInfo.cs
- SubstitutionList.cs
- DateTimeParse.cs
- QueryExpr.cs
- DataGridViewRowPrePaintEventArgs.cs
- ResourceAssociationSet.cs
- TextSpanModifier.cs
- SQLConvert.cs
- DescendantBaseQuery.cs
- FrameworkRichTextComposition.cs
- EntityViewGenerationConstants.cs
- MediaContext.cs
- GridItemProviderWrapper.cs
- SQLDecimal.cs
- SafeRightsManagementQueryHandle.cs
- ComplexLine.cs
- MemberAccessException.cs
- JpegBitmapDecoder.cs
- EntityTypeEmitter.cs
- NotImplementedException.cs
- InteropBitmapSource.cs
- SchemaImporterExtensionsSection.cs
- ArgumentNullException.cs
- securestring.cs
- ModuleBuilder.cs
- ImageDrawing.cs
- MimeMapping.cs
- ApplicationInfo.cs
- SoapExtension.cs
- XPathAncestorQuery.cs
- StrokeIntersection.cs
- JsonEnumDataContract.cs
- StorageScalarPropertyMapping.cs
- RecognizedWordUnit.cs
- CodeGenerationManager.cs
- Number.cs
- SuppressIldasmAttribute.cs
- PropertyItemInternal.cs