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 / EntityDataSourceSelectedEventArgs.cs / 1 / EntityDataSourceSelectedEventArgs.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; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // 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; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // 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
- SafeEventLogReadHandle.cs
- PointCollectionValueSerializer.cs
- ECDiffieHellmanCngPublicKey.cs
- DefaultPropertyAttribute.cs
- CacheSection.cs
- TemplateBaseAction.cs
- DependencyObjectType.cs
- TrustExchangeException.cs
- SpecialFolderEnumConverter.cs
- XMLUtil.cs
- GridViewRowEventArgs.cs
- ResponseBodyWriter.cs
- _ProxyChain.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlWriterTraceListener.cs
- X509SecurityToken.cs
- RowToFieldTransformer.cs
- Util.cs
- wmiprovider.cs
- NativeMethods.cs
- BrowserCapabilitiesFactoryBase.cs
- InputChannel.cs
- TextEditorLists.cs
- GridItem.cs
- RemoteWebConfigurationHost.cs
- ViewCellSlot.cs
- UriTemplateVariableQueryValue.cs
- PolicyException.cs
- XmlWhitespace.cs
- Statements.cs
- VectorKeyFrameCollection.cs
- LogFlushAsyncResult.cs
- Exception.cs
- SafeThemeHandle.cs
- UIElementIsland.cs
- HelpProvider.cs
- TextEffectCollection.cs
- TransformerTypeCollection.cs
- CompositionTarget.cs
- Binding.cs
- Grant.cs
- MsmqChannelFactory.cs
- Profiler.cs
- CommandLineParser.cs
- XsdBuildProvider.cs
- HatchBrush.cs
- ChildChangedEventArgs.cs
- DesignerInterfaces.cs
- WinEventTracker.cs
- DynamicControlParameter.cs
- KeySpline.cs
- ContextStack.cs
- Enum.cs
- GlobalDataBindingHandler.cs
- RelationshipDetailsRow.cs
- ContextStaticAttribute.cs
- QilBinary.cs
- JournalNavigationScope.cs
- TreeWalkHelper.cs
- FormsAuthentication.cs
- QilReplaceVisitor.cs
- NavigationPropertySingletonExpression.cs
- MSAANativeProvider.cs
- EventTask.cs
- FlowSwitchLink.cs
- _AutoWebProxyScriptEngine.cs
- XmlCompatibilityReader.cs
- ComNativeDescriptor.cs
- CollaborationHelperFunctions.cs
- Pen.cs
- EntityProxyTypeInfo.cs
- BooleanProjectedSlot.cs
- Tuple.cs
- OrderByBuilder.cs
- sqlinternaltransaction.cs
- PropertyNames.cs
- TableAutomationPeer.cs
- Page.cs
- EmbeddedMailObjectsCollection.cs
- LinkedList.cs
- UserPreferenceChangingEventArgs.cs
- FactoryRecord.cs
- OperationParameterInfoCollection.cs
- XmlNodeChangedEventManager.cs
- FontCollection.cs
- LookupNode.cs
- StrokeCollection2.cs
- XmlReflectionMember.cs
- TypeDescriptionProvider.cs
- FollowerQueueCreator.cs
- PassportAuthenticationEventArgs.cs
- UnknownWrapper.cs
- QilParameter.cs
- RelatedImageListAttribute.cs
- TransactionScope.cs
- OpCopier.cs
- CompilationSection.cs
- CompositeDataBoundControl.cs
- AddressHeaderCollection.cs
- GACIdentityPermission.cs