Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ArrangedElement.cs
- SecurityDocument.cs
- XamlWrappingReader.cs
- MouseGesture.cs
- AmbientProperties.cs
- DocumentViewerBase.cs
- Section.cs
- TextRangeAdaptor.cs
- Rijndael.cs
- MenuCommand.cs
- _ListenerRequestStream.cs
- FontNamesConverter.cs
- MetadataArtifactLoaderResource.cs
- ConnectionProviderAttribute.cs
- MetadataProperty.cs
- NumericUpDownAccelerationCollection.cs
- ResumeStoryboard.cs
- GeneralTransform3DGroup.cs
- Registry.cs
- SendMailErrorEventArgs.cs
- ValidatingReaderNodeData.cs
- ImageBrush.cs
- LineBreak.cs
- parserscommon.cs
- PerSessionInstanceContextProvider.cs
- CreateCardRequest.cs
- RecognizedPhrase.cs
- CollectionViewGroup.cs
- Memoizer.cs
- DetailsViewUpdatedEventArgs.cs
- Region.cs
- TextRange.cs
- LocatorManager.cs
- DSASignatureFormatter.cs
- DrawingImage.cs
- URL.cs
- OleDbConnectionInternal.cs
- ResourceReferenceExpression.cs
- DSACryptoServiceProvider.cs
- DrawingImage.cs
- SynchronizedPool.cs
- TransformerInfoCollection.cs
- Literal.cs
- ServiceAuthorizationElement.cs
- WinCategoryAttribute.cs
- MenuItem.cs
- MD5CryptoServiceProvider.cs
- WebProxyScriptElement.cs
- SiteMapSection.cs
- panel.cs
- DialogDivider.cs
- TypeReference.cs
- ApplicationDirectory.cs
- CallContext.cs
- RadioButton.cs
- TypeUtil.cs
- DataTableReader.cs
- CapabilitiesState.cs
- Documentation.cs
- QuotedPrintableStream.cs
- SafeIUnknown.cs
- WebMethodAttribute.cs
- TemplatePartAttribute.cs
- DataSourceUtil.cs
- TreeNodeCollection.cs
- PathParser.cs
- Misc.cs
- AddInIpcChannel.cs
- SynchronizedInputAdaptor.cs
- DigitShape.cs
- Rijndael.cs
- Matrix.cs
- AsymmetricSignatureDeformatter.cs
- PostBackOptions.cs
- SoapSchemaExporter.cs
- _KerberosClient.cs
- ServiceReflector.cs
- Int32AnimationBase.cs
- CharConverter.cs
- PropertyEntry.cs
- CountdownEvent.cs
- BindingNavigatorDesigner.cs
- JournalEntryStack.cs
- CompositeKey.cs
- SchemaReference.cs
- iisPickupDirectory.cs
- WebServiceFault.cs
- BindingMAnagerBase.cs
- FileEnumerator.cs
- ConfigurationPropertyCollection.cs
- ResXResourceWriter.cs
- formatter.cs
- GeometryDrawing.cs
- UnsafeNativeMethods.cs
- Control.cs
- Material.cs
- EvidenceBase.cs
- XmlSchemaSubstitutionGroup.cs
- ScriptHandlerFactory.cs
- DateTimeFormat.cs