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
- FrameworkContentElementAutomationPeer.cs
- PropertyEmitterBase.cs
- InvalidOperationException.cs
- SvcMapFileSerializer.cs
- RoleManagerSection.cs
- UserPersonalizationStateInfo.cs
- SchemaDeclBase.cs
- ConfigurationLocation.cs
- EdmToObjectNamespaceMap.cs
- TextRangeEditTables.cs
- DataGridColumnCollection.cs
- FrameDimension.cs
- GestureRecognitionResult.cs
- AsyncDataRequest.cs
- XmlSignificantWhitespace.cs
- SQLGuidStorage.cs
- InputProcessorProfiles.cs
- TableItemPatternIdentifiers.cs
- XmlObjectSerializer.cs
- XmlSchemaAny.cs
- RolePrincipal.cs
- DataGridState.cs
- Dynamic.cs
- UnrecognizedPolicyAssertionElement.cs
- TileModeValidation.cs
- WebSysDefaultValueAttribute.cs
- Graph.cs
- ArgumentOutOfRangeException.cs
- SocketException.cs
- Activator.cs
- FlowDocumentReaderAutomationPeer.cs
- webeventbuffer.cs
- PersonalizationDictionary.cs
- WindowsFormsLinkLabel.cs
- BamlLocalizableResource.cs
- EditingCommands.cs
- TrueReadOnlyCollection.cs
- ParserStack.cs
- Bold.cs
- SqlServer2KCompatibilityAnnotation.cs
- ValueUnavailableException.cs
- MultiView.cs
- QilValidationVisitor.cs
- HttpHandlersSection.cs
- Classification.cs
- CompiledQuery.cs
- ButtonFieldBase.cs
- ControlUtil.cs
- DesignerToolboxInfo.cs
- ObjectSelectorEditor.cs
- ButtonFieldBase.cs
- DataRowComparer.cs
- ToolStripMenuItem.cs
- ContentHostHelper.cs
- DataKeyPropertyAttribute.cs
- X509Certificate2Collection.cs
- FunctionNode.cs
- TextFormattingConverter.cs
- EnumConverter.cs
- SafeBitVector32.cs
- VectorCollectionValueSerializer.cs
- XPathChildIterator.cs
- QuotedPrintableStream.cs
- InternalSafeNativeMethods.cs
- EdmMember.cs
- XmlElementAttributes.cs
- StreamInfo.cs
- DataGridTablesFactory.cs
- HttpContext.cs
- EdgeModeValidation.cs
- GridViewItemAutomationPeer.cs
- SmtpNegotiateAuthenticationModule.cs
- TextTreeFixupNode.cs
- OdbcUtils.cs
- COM2ExtendedBrowsingHandler.cs
- DropDownList.cs
- ProfileService.cs
- MatrixStack.cs
- SelectionChangedEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- XmlSchemaSet.cs
- CodeTypeParameterCollection.cs
- SHA256.cs
- HtmlSelect.cs
- ObjectIDGenerator.cs
- BidirectionalDictionary.cs
- PeerNameRecordCollection.cs
- Stream.cs
- HwndAppCommandInputProvider.cs
- DefaultPrintController.cs
- CultureInfoConverter.cs
- RegexWorker.cs
- ObjectDataProvider.cs
- ChannelBinding.cs
- XmlReflectionMember.cs
- Material.cs
- SubstitutionDesigner.cs
- XDRSchema.cs
- ReadingWritingEntityEventArgs.cs
- HttpCookie.cs