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
- InheritanceRules.cs
- ExceptionHelpers.cs
- DataBinding.cs
- SafeNativeMethods.cs
- RuntimeVariableList.cs
- BindingObserver.cs
- ProcessHostConfigUtils.cs
- XmlResolver.cs
- baseaxisquery.cs
- HttpConfigurationSystem.cs
- SemanticResultKey.cs
- LicenseException.cs
- XmlnsPrefixAttribute.cs
- Console.cs
- Transform3DGroup.cs
- WindowsToolbar.cs
- Matrix3DStack.cs
- NativeMethods.cs
- SoapSchemaImporter.cs
- UriTemplatePathSegment.cs
- IMembershipProvider.cs
- DataGridViewBand.cs
- SqlTypesSchemaImporter.cs
- SystemUdpStatistics.cs
- ValidationHelper.cs
- InvalidDataException.cs
- EventProxy.cs
- AttributeProviderAttribute.cs
- Tokenizer.cs
- ProviderSettingsCollection.cs
- AccessText.cs
- DtcInterfaces.cs
- FormClosingEvent.cs
- HwndStylusInputProvider.cs
- CrossSiteScriptingValidation.cs
- ArgIterator.cs
- PrimitiveXmlSerializers.cs
- DecoderNLS.cs
- XmlWriterSettings.cs
- TemplateBindingExpression.cs
- CustomAttributeBuilder.cs
- MetadataUtil.cs
- MaterializeFromAtom.cs
- MemberBinding.cs
- DiscoveryReferences.cs
- DataSourceHelper.cs
- ExtensibleClassFactory.cs
- LocationUpdates.cs
- SqlTriggerAttribute.cs
- SqlInfoMessageEvent.cs
- XComponentModel.cs
- X509RawDataKeyIdentifierClause.cs
- SevenBitStream.cs
- DefaultAsyncDataDispatcher.cs
- Cursor.cs
- FactoryGenerator.cs
- RichTextBox.cs
- DataServiceBuildProvider.cs
- LinqDataSourceContextEventArgs.cs
- CompositeFontParser.cs
- WebSysDescriptionAttribute.cs
- SqlNodeAnnotations.cs
- SwitchDesigner.xaml.cs
- ArrangedElement.cs
- ClientFormsAuthenticationCredentials.cs
- MemberMaps.cs
- FillBehavior.cs
- MeasureItemEvent.cs
- FacetChecker.cs
- PrintDialog.cs
- TextServicesCompartmentEventSink.cs
- categoryentry.cs
- _UriSyntax.cs
- DataServiceQuery.cs
- CapabilitiesState.cs
- FieldTemplateFactory.cs
- PreloadHost.cs
- EdmProviderManifest.cs
- TableCellsCollectionEditor.cs
- Regex.cs
- ActivityTypeDesigner.xaml.cs
- PublishLicense.cs
- BaseParser.cs
- XmlAttribute.cs
- DataSourceControlBuilder.cs
- RegexRunner.cs
- AdapterSwitches.cs
- RtfNavigator.cs
- VirtualPath.cs
- DoubleKeyFrameCollection.cs
- ResourceContainer.cs
- EntityContainerRelationshipSet.cs
- ToolStripSeparatorRenderEventArgs.cs
- ReverseInheritProperty.cs
- PeerToPeerException.cs
- SqlRemoveConstantOrderBy.cs
- RegexCompilationInfo.cs
- Base64Encoder.cs
- RegistrationServices.cs
- PhysicalAddress.cs