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
- DivideByZeroException.cs
- OciLobLocator.cs
- EnumValAlphaComparer.cs
- XmlMapping.cs
- PropertyStore.cs
- LocalizabilityAttribute.cs
- EventLogger.cs
- HttpHandler.cs
- DebugView.cs
- Geometry3D.cs
- DataServiceQueryOfT.cs
- UserControlBuildProvider.cs
- KeyFrames.cs
- UnsafeNativeMethods.cs
- WsiProfilesElement.cs
- TextAutomationPeer.cs
- RelationshipEndMember.cs
- PaperSource.cs
- DbCommandDefinition.cs
- ZipIOModeEnforcingStream.cs
- NavigationHelper.cs
- ProfilePropertySettings.cs
- HttpDictionary.cs
- MSG.cs
- util.cs
- PartialCachingAttribute.cs
- IgnoreDataMemberAttribute.cs
- CodeArrayCreateExpression.cs
- AndMessageFilterTable.cs
- HtmlInputCheckBox.cs
- TransformerInfoCollection.cs
- SecurityAppliedMessage.cs
- SoapDocumentServiceAttribute.cs
- CustomActivityDesigner.cs
- EntityDataSourceState.cs
- PreservationFileWriter.cs
- SuppressIldasmAttribute.cs
- SoapAttributeOverrides.cs
- WindowsTitleBar.cs
- AssemblyBuilder.cs
- CoreChannel.cs
- TextEditorParagraphs.cs
- StringSource.cs
- BitmapPalette.cs
- IODescriptionAttribute.cs
- FontStyle.cs
- WebServiceFaultDesigner.cs
- BaseTemplatedMobileComponentEditor.cs
- XmlTypeMapping.cs
- FixedSOMFixedBlock.cs
- EditorAttribute.cs
- CompilerError.cs
- ThrowHelper.cs
- XComponentModel.cs
- TextBox.cs
- AmbientEnvironment.cs
- WsdlBuildProvider.cs
- Base64Decoder.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XhtmlBasicImageAdapter.cs
- DrawListViewColumnHeaderEventArgs.cs
- BehaviorService.cs
- DefaultHttpHandler.cs
- DbException.cs
- RadioButtonRenderer.cs
- DocumentEventArgs.cs
- ActivityInstanceReference.cs
- DeploymentExceptionMapper.cs
- XpsLiterals.cs
- XmlNodeList.cs
- CodeTypeParameter.cs
- InheritanceUI.cs
- PerformanceCountersElement.cs
- XComponentModel.cs
- SmiContext.cs
- AttachedAnnotation.cs
- IListConverters.cs
- GuidelineSet.cs
- CompiledELinqQueryState.cs
- ZoneIdentityPermission.cs
- MetadataItemEmitter.cs
- PinnedBufferMemoryStream.cs
- BuildProviderAppliesToAttribute.cs
- XmlnsPrefixAttribute.cs
- TextParagraph.cs
- PropertyDescriptorComparer.cs
- DetailsViewModeEventArgs.cs
- SchemaInfo.cs
- ToolStripScrollButton.cs
- RoleGroupCollection.cs
- WebPartCatalogAddVerb.cs
- XMLUtil.cs
- DynamicResourceExtension.cs
- SystemDiagnosticsSection.cs
- ErrorInfoXmlDocument.cs
- BridgeDataRecord.cs
- MethodAccessException.cs
- ConfigXmlAttribute.cs
- InvariantComparer.cs
- Rotation3DAnimationBase.cs