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
- _HeaderInfo.cs
- RegexBoyerMoore.cs
- Geometry3D.cs
- GACIdentityPermission.cs
- RTLAwareMessageBox.cs
- TypeSystem.cs
- ColumnWidthChangedEvent.cs
- MediaSystem.cs
- CompiledXpathExpr.cs
- HTMLTagNameToTypeMapper.cs
- RawKeyboardInputReport.cs
- PrintPageEvent.cs
- OdbcInfoMessageEvent.cs
- ExtensionWindowHeader.cs
- ContainerFilterService.cs
- AttachmentCollection.cs
- ComponentResourceKeyConverter.cs
- Compiler.cs
- TextEditorCopyPaste.cs
- HttpAsyncResult.cs
- CheckBoxPopupAdapter.cs
- InkSerializer.cs
- RectAnimation.cs
- XmlSchemaAttributeGroup.cs
- filewebresponse.cs
- ProxyAttribute.cs
- CompilationSection.cs
- ConfigurationSectionCollection.cs
- EmptyEnumerable.cs
- ButtonChrome.cs
- SchemaImporterExtension.cs
- PublishLicense.cs
- Rfc2898DeriveBytes.cs
- FormsAuthenticationConfiguration.cs
- GridViewRowCollection.cs
- AssemblyCache.cs
- Directory.cs
- mediaeventargs.cs
- NotificationContext.cs
- InternalResources.cs
- BaseServiceProvider.cs
- Int32Animation.cs
- UnsafeNativeMethodsTablet.cs
- PackageRelationship.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- IntSecurity.cs
- Error.cs
- Stack.cs
- ResourceExpression.cs
- ReadOnlyDataSourceView.cs
- DebugView.cs
- ThicknessAnimationBase.cs
- LinqDataSource.cs
- PrimitiveXmlSerializers.cs
- RenamedEventArgs.cs
- CodeGeneratorOptions.cs
- PrintPreviewDialog.cs
- KeySplineConverter.cs
- ConfigurationElementProperty.cs
- JsonDeserializer.cs
- DispatcherHooks.cs
- printdlgexmarshaler.cs
- ListBoxItemWrapperAutomationPeer.cs
- GlyphsSerializer.cs
- ContentValidator.cs
- TypeSemantics.cs
- XsltArgumentList.cs
- CompModSwitches.cs
- TypeSystem.cs
- XPathNavigator.cs
- FrameworkEventSource.cs
- WindowsFormsHelpers.cs
- TraceHandler.cs
- HttpInputStream.cs
- FontStyle.cs
- SafeArrayTypeMismatchException.cs
- ColorConvertedBitmap.cs
- XamlReader.cs
- SingleAnimationUsingKeyFrames.cs
- AlternateViewCollection.cs
- XmlEncodedRawTextWriter.cs
- ListViewSelectEventArgs.cs
- SharedPerformanceCounter.cs
- WebChannelFactory.cs
- ArrangedElementCollection.cs
- _CommandStream.cs
- ImageFormat.cs
- PassportAuthenticationModule.cs
- X509PeerCertificateElement.cs
- AsymmetricSignatureFormatter.cs
- PropertyInformationCollection.cs
- OdbcException.cs
- OleDbErrorCollection.cs
- ResourceDescriptionAttribute.cs
- XamlWriter.cs
- ELinqQueryState.cs
- DesignerLinkAdapter.cs
- DesignTimeParseData.cs
- OpenFileDialog.cs
- ProvidersHelper.cs