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
- Transform.cs
- EventSourceCreationData.cs
- WebScriptMetadataInstanceContextProvider.cs
- SqlWriter.cs
- DataGridItemCollection.cs
- ColorKeyFrameCollection.cs
- LinkLabelLinkClickedEvent.cs
- DiagnosticTrace.cs
- OracleColumn.cs
- ReflectionHelper.cs
- SQLString.cs
- panel.cs
- DynamicDocumentPaginator.cs
- RelationshipWrapper.cs
- ColorTranslator.cs
- SchemaSetCompiler.cs
- DateBoldEvent.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Size3DValueSerializer.cs
- ImageMapEventArgs.cs
- MatrixValueSerializer.cs
- x509store.cs
- Rfc2898DeriveBytes.cs
- DummyDataSource.cs
- XamlValidatingReader.cs
- StrokeSerializer.cs
- IImplicitResourceProvider.cs
- Odbc32.cs
- securitycriticaldataClass.cs
- ReflectionHelper.cs
- MasterPageCodeDomTreeGenerator.cs
- ToolStripItemTextRenderEventArgs.cs
- ThrowHelper.cs
- PersonalizationStateInfo.cs
- InputReferenceExpression.cs
- webclient.cs
- HiddenField.cs
- Screen.cs
- SocketAddress.cs
- CharacterMetricsDictionary.cs
- Select.cs
- ScanQueryOperator.cs
- TrackingLocation.cs
- TypedColumnHandler.cs
- MouseActionValueSerializer.cs
- CurrentTimeZone.cs
- GeometryConverter.cs
- RuntimeResourceSet.cs
- KnownColorTable.cs
- XmlChildEnumerator.cs
- ETagAttribute.cs
- NullableFloatMinMaxAggregationOperator.cs
- PriorityBindingExpression.cs
- PolicyImporterElement.cs
- ArrayMergeHelper.cs
- ResourceExpressionBuilder.cs
- Rect3DConverter.cs
- DefaultSerializationProviderAttribute.cs
- SoapFault.cs
- TextDecoration.cs
- SqlNotificationEventArgs.cs
- MouseEventArgs.cs
- DragDrop.cs
- ChannelSinkStacks.cs
- DirectionalLight.cs
- FilterQuery.cs
- DynamicMethod.cs
- ConversionValidationRule.cs
- BuilderElements.cs
- DocComment.cs
- URI.cs
- EventRoute.cs
- FloatMinMaxAggregationOperator.cs
- DataGridViewMethods.cs
- DetailsView.cs
- SHA384CryptoServiceProvider.cs
- x509utils.cs
- XPathAxisIterator.cs
- Latin1Encoding.cs
- CultureSpecificStringDictionary.cs
- UnsafeNativeMethods.cs
- MemberJoinTreeNode.cs
- WriteFileContext.cs
- RubberbandSelector.cs
- _LoggingObject.cs
- SizeAnimation.cs
- iisPickupDirectory.cs
- handlecollector.cs
- ExpressionStringBuilder.cs
- RowTypeElement.cs
- NopReturnReader.cs
- DataError.cs
- FormsAuthentication.cs
- ToolStripRenderEventArgs.cs
- OdbcInfoMessageEvent.cs
- Missing.cs
- _Events.cs
- InkCollectionBehavior.cs
- SHA256Managed.cs
- AdornerPresentationContext.cs