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
- LoginView.cs
- hresults.cs
- HierarchicalDataBoundControl.cs
- Button.cs
- EntityConnectionStringBuilder.cs
- ResourceExpressionBuilder.cs
- HyperLinkColumn.cs
- ReachPageContentCollectionSerializer.cs
- QuotedStringWriteStateInfo.cs
- MessageDecoder.cs
- CommonObjectSecurity.cs
- SqlRecordBuffer.cs
- recordstatefactory.cs
- MoveSizeWinEventHandler.cs
- ByteAnimation.cs
- GridViewRowPresenter.cs
- BCLDebug.cs
- SerializationInfo.cs
- HtmlTableCellCollection.cs
- GeneralTransform3D.cs
- Model3D.cs
- HtmlMeta.cs
- RegexTree.cs
- TextBoxAutomationPeer.cs
- _TLSstream.cs
- UnmanagedMarshal.cs
- DataGridViewTextBoxEditingControl.cs
- AnonymousIdentificationSection.cs
- TextDecorationCollection.cs
- EventManager.cs
- Encoder.cs
- BamlTreeNode.cs
- DoubleLinkList.cs
- HttpProfileBase.cs
- ManagementOptions.cs
- GeometryHitTestResult.cs
- RichTextBoxConstants.cs
- MonthCalendar.cs
- CodeFieldReferenceExpression.cs
- ObjectPersistData.cs
- DescriptionAttribute.cs
- Exceptions.cs
- InvokeProviderWrapper.cs
- Int32AnimationBase.cs
- EventToken.cs
- DetailsViewDeletedEventArgs.cs
- WebPartDescriptionCollection.cs
- ListBindableAttribute.cs
- RepeaterCommandEventArgs.cs
- WpfWebRequestHelper.cs
- HMACSHA384.cs
- Int16AnimationBase.cs
- SoapObjectInfo.cs
- XmlNamedNodeMap.cs
- LabelLiteral.cs
- EditableTreeList.cs
- QueryPageSettingsEventArgs.cs
- ToolboxSnapDragDropEventArgs.cs
- PeerCollaborationPermission.cs
- TripleDES.cs
- BlurBitmapEffect.cs
- WorkflowDataContext.cs
- SortQuery.cs
- RotateTransform3D.cs
- NameTable.cs
- EmbeddedObject.cs
- TableColumn.cs
- ProviderConnectionPointCollection.cs
- Point3D.cs
- SerializationInfo.cs
- PaperSize.cs
- NullableDecimalMinMaxAggregationOperator.cs
- Pair.cs
- SymbolEqualComparer.cs
- UInt64Storage.cs
- WsrmMessageInfo.cs
- DataGridViewButtonCell.cs
- DBParameter.cs
- NavigatorOutput.cs
- WinFormsComponentEditor.cs
- TypeSystem.cs
- ShaderRenderModeValidation.cs
- MapPathBasedVirtualPathProvider.cs
- ConfigPathUtility.cs
- UnmanagedMemoryAccessor.cs
- ArrayExtension.cs
- PrintDialogDesigner.cs
- DataBindEngine.cs
- DynamicResourceExtension.cs
- ServiceMetadataBehavior.cs
- SqlDependencyListener.cs
- ListViewAutomationPeer.cs
- UTF32Encoding.cs
- LedgerEntryCollection.cs
- TextTabProperties.cs
- DataMisalignedException.cs
- ActivityBuilder.cs
- GeometryHitTestResult.cs
- Attributes.cs
- MemberProjectedSlot.cs