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
- PointUtil.cs
- StatusBarDrawItemEvent.cs
- SemanticTag.cs
- DescendantBaseQuery.cs
- ECDiffieHellman.cs
- CatalogZone.cs
- WorkflowHostingEndpoint.cs
- ResourceDescriptionAttribute.cs
- IdentityHolder.cs
- X509AudioLogo.cs
- FilterException.cs
- EntityDataSourceMemberPath.cs
- CornerRadius.cs
- PropertyMappingExceptionEventArgs.cs
- PowerStatus.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AnimatedTypeHelpers.cs
- ColumnWidthChangedEvent.cs
- NativeActivityMetadata.cs
- ClockGroup.cs
- MultiPageTextView.cs
- Completion.cs
- XmlSiteMapProvider.cs
- GACMembershipCondition.cs
- BindingsSection.cs
- ValidatorUtils.cs
- ScriptReference.cs
- SHA1Managed.cs
- CodeFieldReferenceExpression.cs
- XmlNamedNodeMap.cs
- SignatureHelper.cs
- CheckBoxPopupAdapter.cs
- RetrieveVirtualItemEventArgs.cs
- CopyAction.cs
- Page.cs
- wmiprovider.cs
- EncoderParameters.cs
- BinaryObjectReader.cs
- formatstringdialog.cs
- XsdDuration.cs
- CellParagraph.cs
- QueryResultOp.cs
- CapacityStreamGeometryContext.cs
- OutputCache.cs
- UriTemplateTableMatchCandidate.cs
- KeyedHashAlgorithm.cs
- Int16Storage.cs
- SqlFactory.cs
- NetworkInterface.cs
- Fonts.cs
- OrthographicCamera.cs
- EntityKey.cs
- IdnElement.cs
- Thickness.cs
- ImageAnimator.cs
- HuffModule.cs
- StringSorter.cs
- XmlAttribute.cs
- SoapTransportImporter.cs
- ToolStripMenuItem.cs
- SqlBooleanizer.cs
- EmptyControlCollection.cs
- NavigationPropertySingletonExpression.cs
- SQLBytesStorage.cs
- CodeGotoStatement.cs
- SqlNodeAnnotation.cs
- AsyncInvokeContext.cs
- BehaviorEditorPart.cs
- GridViewColumnHeader.cs
- ResumeStoryboard.cs
- TextSegment.cs
- EnlistmentTraceIdentifier.cs
- XmlnsDictionary.cs
- SafeEventLogReadHandle.cs
- ProtocolsConfiguration.cs
- ZoneLinkButton.cs
- TemplateControlBuildProvider.cs
- BlockUIContainer.cs
- SerializationInfoEnumerator.cs
- MultipartIdentifier.cs
- CancellationTokenRegistration.cs
- Propagator.cs
- DisplayInformation.cs
- PiiTraceSource.cs
- XmlEnumAttribute.cs
- XPathQilFactory.cs
- OdbcConnectionPoolProviderInfo.cs
- InstalledVoice.cs
- WmfPlaceableFileHeader.cs
- OperationSelectorBehavior.cs
- brushes.cs
- TypeLoadException.cs
- RuntimeHandles.cs
- HttpRequestCacheValidator.cs
- ProgressChangedEventArgs.cs
- StorageTypeMapping.cs
- SimpleFieldTemplateUserControl.cs
- XmlExpressionDumper.cs
- WinInet.cs
- _AcceptOverlappedAsyncResult.cs