Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangedEventArgs.cs / 1 / EntityDataSourceChangedEventArgs.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 EntityDataSourceChangedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangedEventArgs(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 EntityDataSourceChangedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangedEventArgs(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
- CustomAttributeBuilder.cs
- HttpClientChannel.cs
- TypeNameHelper.cs
- DocumentReference.cs
- BamlResourceSerializer.cs
- ObjectComplexPropertyMapping.cs
- MailWebEventProvider.cs
- TemplateKey.cs
- TcpTransportManager.cs
- SortDescription.cs
- ResourceDictionaryCollection.cs
- TitleStyle.cs
- FreezableCollection.cs
- QueryBranchOp.cs
- DataGridItemCollection.cs
- ObjectViewFactory.cs
- RSAPKCS1SignatureFormatter.cs
- ParsedAttributeCollection.cs
- ExpressionEditorAttribute.cs
- ObjectDesignerDataSourceView.cs
- DocumentGridContextMenu.cs
- CustomErrorsSection.cs
- InlineUIContainer.cs
- MethodBuilder.cs
- control.ime.cs
- CellIdBoolean.cs
- DataGridLinkButton.cs
- NavigationWindow.cs
- TreeViewImageIndexConverter.cs
- ADConnectionHelper.cs
- BuildProviderAppliesToAttribute.cs
- RSAProtectedConfigurationProvider.cs
- SqlCommandSet.cs
- TextContainer.cs
- AuthenticationSection.cs
- DataGridViewCellConverter.cs
- UnionCqlBlock.cs
- LineServicesCallbacks.cs
- Rotation3D.cs
- BuildManager.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- XmlMapping.cs
- EndOfStreamException.cs
- EnumerableRowCollection.cs
- TransactionFlowAttribute.cs
- ComboBox.cs
- XmlQueryContext.cs
- JsonReader.cs
- RtfNavigator.cs
- ElementUtil.cs
- XamlNamespaceHelper.cs
- CompilerCollection.cs
- MD5CryptoServiceProvider.cs
- GCHandleCookieTable.cs
- SparseMemoryStream.cs
- CodeCompiler.cs
- ContractsBCL.cs
- EdmRelationshipRoleAttribute.cs
- SizeValueSerializer.cs
- ObjectDataSourceView.cs
- InputScope.cs
- ToolBarButton.cs
- RawStylusInputReport.cs
- SecurityListenerSettingsLifetimeManager.cs
- RenderData.cs
- ToolStripLocationCancelEventArgs.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XmlValidatingReaderImpl.cs
- TraceRecord.cs
- SqlCacheDependencyDatabase.cs
- ValidatedControlConverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- GridViewColumn.cs
- CqlLexer.cs
- GlyphCache.cs
- ServiceHostingEnvironment.cs
- SafeHandles.cs
- MemberProjectionIndex.cs
- XmlTextReader.cs
- OdbcConnectionHandle.cs
- WebRequestModuleElementCollection.cs
- CompositeActivityTypeDescriptorProvider.cs
- AssertFilter.cs
- WindowHideOrCloseTracker.cs
- SettingsBindableAttribute.cs
- DataGridViewSelectedRowCollection.cs
- LateBoundChannelParameterCollection.cs
- OleDbParameterCollection.cs
- SmiXetterAccessMap.cs
- DefaultAsyncDataDispatcher.cs
- PropertyPathWorker.cs
- TableRow.cs
- IsolatedStorageException.cs
- CmsInterop.cs
- ResolveNextArgumentWorkItem.cs
- MapPathBasedVirtualPathProvider.cs
- NotFiniteNumberException.cs
- ServiceX509SecurityTokenProvider.cs
- WebConfigurationManager.cs
- RadioButtonStandardAdapter.cs