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
- SqlNodeAnnotation.cs
- odbcmetadatacolumnnames.cs
- BroadcastEventHelper.cs
- _NtlmClient.cs
- ObjectContext.cs
- ProjectionPruner.cs
- TabControlEvent.cs
- GridViewColumnHeaderAutomationPeer.cs
- PreProcessInputEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- CLRBindingWorker.cs
- ContentType.cs
- IPAddress.cs
- ItemsPresenter.cs
- SessionStateModule.cs
- AssertValidation.cs
- TraceUtility.cs
- CustomValidator.cs
- DictionarySectionHandler.cs
- HierarchicalDataBoundControlAdapter.cs
- MethodImplAttribute.cs
- ExitEventArgs.cs
- HttpProfileBase.cs
- MetadataCollection.cs
- HtmlToClrEventProxy.cs
- ToolBarPanel.cs
- ObjectStateEntry.cs
- GlyphTypeface.cs
- MinimizableAttributeTypeConverter.cs
- MultipleViewProviderWrapper.cs
- MouseWheelEventArgs.cs
- WindowsGraphicsCacheManager.cs
- RegexBoyerMoore.cs
- DomNameTable.cs
- ConfigurationElement.cs
- Selector.cs
- SQLDouble.cs
- DocumentGridContextMenu.cs
- TabPanel.cs
- SystemFonts.cs
- SerializerProvider.cs
- TextEditorThreadLocalStore.cs
- AlphabeticalEnumConverter.cs
- ExternalException.cs
- SocketException.cs
- FormViewInsertEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- AxWrapperGen.cs
- DesignerAdRotatorAdapter.cs
- TextReturnReader.cs
- XmlHierarchicalDataSourceView.cs
- TypeLoadException.cs
- WorkflowQueue.cs
- RequestCacheManager.cs
- SqlClientMetaDataCollectionNames.cs
- WorkflowApplicationCompletedEventArgs.cs
- SharedDp.cs
- UnlockInstanceAsyncResult.cs
- WebPartVerbsEventArgs.cs
- Ops.cs
- EnumValidator.cs
- HtmlInputPassword.cs
- EditorZoneBase.cs
- FloatUtil.cs
- UInt32Storage.cs
- MatrixValueSerializer.cs
- AlignmentYValidation.cs
- XmlSerializationReader.cs
- ObjectAssociationEndMapping.cs
- CryptoApi.cs
- CryptoStream.cs
- NonClientArea.cs
- XamlClipboardData.cs
- ToolStripItemTextRenderEventArgs.cs
- OracleDateTime.cs
- MsmqQueue.cs
- TdsRecordBufferSetter.cs
- TypeLoadException.cs
- DocumentSchemaValidator.cs
- XmlSerializationGeneratedCode.cs
- QueryIntervalOp.cs
- MetadataArtifactLoaderCompositeResource.cs
- ColorConvertedBitmapExtension.cs
- StringUtil.cs
- SerializationIncompleteException.cs
- FilterElement.cs
- TrackingDataItem.cs
- Add.cs
- Rotation3DAnimation.cs
- BorderGapMaskConverter.cs
- MasterPageBuildProvider.cs
- SpecialNameAttribute.cs
- DateTimeOffsetAdapter.cs
- SqlParameter.cs
- StreamGeometry.cs
- TextModifierScope.cs
- SystemParameters.cs
- BaseTreeIterator.cs
- Hyperlink.cs
- ListContractAdapter.cs