Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SafeLibraryHandle.cs
- DataContractSerializer.cs
- MediaTimeline.cs
- HtmlControlPersistable.cs
- SqlDataSourceView.cs
- QuaternionKeyFrameCollection.cs
- SiteIdentityPermission.cs
- TransformerInfo.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlParserContext.cs
- WebPartsPersonalizationAuthorization.cs
- OdbcReferenceCollection.cs
- MethodImplAttribute.cs
- WebPartPersonalization.cs
- SettingsSavedEventArgs.cs
- AuthenticationConfig.cs
- StringTraceRecord.cs
- Resources.Designer.cs
- XamlPathDataSerializer.cs
- PropertySourceInfo.cs
- Matrix.cs
- ProtocolsConfiguration.cs
- Mouse.cs
- DataGridViewCellValidatingEventArgs.cs
- GenerateTemporaryAssemblyTask.cs
- UnsafeCollabNativeMethods.cs
- Html32TextWriter.cs
- SafeEventLogWriteHandle.cs
- EventLogHandle.cs
- PropertyManager.cs
- SequenceQuery.cs
- ReadOnlyPropertyMetadata.cs
- HttpRequest.cs
- BooleanSwitch.cs
- PersonalizationProviderHelper.cs
- Form.cs
- XamlGridLengthSerializer.cs
- ServicePointManagerElement.cs
- ConstraintManager.cs
- DecimalConstantAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- SafeNativeMethods.cs
- XmlQuerySequence.cs
- RoutingBehavior.cs
- ProcessModelSection.cs
- PointLight.cs
- NamespaceCollection.cs
- WebControlAdapter.cs
- Property.cs
- RNGCryptoServiceProvider.cs
- Blend.cs
- WebBrowserEvent.cs
- SourceFilter.cs
- MaterialGroup.cs
- ButtonFlatAdapter.cs
- _ConnectStream.cs
- SecurityElement.cs
- Task.cs
- SerializeAbsoluteContext.cs
- Point3DCollection.cs
- ActivityInstanceReference.cs
- Vector.cs
- Model3DGroup.cs
- TextTreeFixupNode.cs
- IntSecurity.cs
- EnumerableCollectionView.cs
- RegisteredExpandoAttribute.cs
- BitmapEffectInput.cs
- ServiceDescriptionReflector.cs
- OleDbInfoMessageEvent.cs
- ISFTagAndGuidCache.cs
- OperandQuery.cs
- ServerProtocol.cs
- UpdateTranslator.cs
- TreeView.cs
- UnmanagedMarshal.cs
- HostDesigntimeLicenseContext.cs
- XmlSchemaSimpleTypeUnion.cs
- BrowserTree.cs
- XmlSerializerNamespaces.cs
- StylusPointProperty.cs
- IISUnsafeMethods.cs
- SortFieldComparer.cs
- VisualSerializer.cs
- DefaultTextStore.cs
- GetPageCompletedEventArgs.cs
- ModuleElement.cs
- RoleManagerEventArgs.cs
- VisualStyleTypesAndProperties.cs
- HostedHttpRequestAsyncResult.cs
- ControlHelper.cs
- HtmlInputText.cs
- CultureTable.cs
- IDReferencePropertyAttribute.cs
- XmlNodeComparer.cs
- VarInfo.cs
- _ProxyChain.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NonBatchDirectoryCompiler.cs
- EntityCommand.cs