Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceSelectedEventArgs.cs / 1305376 / 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
- StaticDataManager.cs
- XmlDigitalSignatureProcessor.cs
- DesignConnection.cs
- PolicyException.cs
- QueryExpression.cs
- HttpCookieCollection.cs
- BindingManagerDataErrorEventArgs.cs
- CommonRemoteMemoryBlock.cs
- XPathNavigatorReader.cs
- DataGridViewTextBoxEditingControl.cs
- Console.cs
- AggregatePushdown.cs
- SignatureToken.cs
- FlowNode.cs
- ScriptReferenceBase.cs
- grammarelement.cs
- TrackingExtract.cs
- ObjectIDGenerator.cs
- Bold.cs
- JavaScriptString.cs
- ToolStripItemEventArgs.cs
- RoleServiceManager.cs
- BitmapData.cs
- GenericsInstances.cs
- _NativeSSPI.cs
- ToolBar.cs
- TextRange.cs
- CodeDirectiveCollection.cs
- MsdtcWrapper.cs
- PolicyException.cs
- DBConcurrencyException.cs
- Int32CAMarshaler.cs
- ComPlusServiceLoader.cs
- SymbolEqualComparer.cs
- DbConnectionStringBuilder.cs
- HttpPostServerProtocol.cs
- LiteralSubsegment.cs
- SqlServer2KCompatibilityAnnotation.cs
- SqlCacheDependencyDatabase.cs
- Overlapped.cs
- WinEventWrap.cs
- DynamicDataRouteHandler.cs
- Geometry.cs
- IndexOutOfRangeException.cs
- XmlTypeMapping.cs
- ReadOnlyActivityGlyph.cs
- CollectionBuilder.cs
- PropertyNames.cs
- OleDbPropertySetGuid.cs
- ParserContext.cs
- ResourceDefaultValueAttribute.cs
- UTF7Encoding.cs
- StorageAssociationSetMapping.cs
- MethodMessage.cs
- PathTooLongException.cs
- TextEditorParagraphs.cs
- PrintPreviewControl.cs
- EventTask.cs
- SqlRowUpdatingEvent.cs
- BamlVersionHeader.cs
- TypeInfo.cs
- MD5.cs
- FormsAuthentication.cs
- QueueAccessMode.cs
- Brush.cs
- _DomainName.cs
- QueryExecutionOption.cs
- DataGridViewCellParsingEventArgs.cs
- JournalNavigationScope.cs
- CodeLabeledStatement.cs
- InputScopeNameConverter.cs
- HybridDictionary.cs
- List.cs
- SymmetricKeyWrap.cs
- XmlILAnnotation.cs
- DefaultProxySection.cs
- MouseGesture.cs
- WebEventCodes.cs
- LocatorManager.cs
- TextTreeObjectNode.cs
- HWStack.cs
- ComEventsSink.cs
- XmlSchemaInclude.cs
- DataContractSerializerSection.cs
- MarkupWriter.cs
- VirtualizingPanel.cs
- DeflateEmulationStream.cs
- GroupedContextMenuStrip.cs
- DetailsView.cs
- WorkflowShape.cs
- HtmlButton.cs
- SafeEventLogWriteHandle.cs
- ComIntegrationManifestGenerator.cs
- LineProperties.cs
- RegistryPermission.cs
- StorageFunctionMapping.cs
- XmlSchemaSimpleContentExtension.cs
- HandleRef.cs
- UIElement3D.cs
- InlinedAggregationOperatorEnumerator.cs