Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ReadOnlyDataSourceView.cs / 1 / ReadOnlyDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Web.UI; using System.Web.Util; ////// This class is used by ReadOnlyDataSource to represent an individual /// view of a generic data source. /// internal sealed class ReadOnlyDataSourceView : DataSourceView { private IEnumerable _dataSource; public ReadOnlyDataSourceView(ReadOnlyDataSource owner, string name, IEnumerable dataSource) : base(owner, name) { _dataSource = dataSource; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _dataSource; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Web.UI; using System.Web.Util; ////// This class is used by ReadOnlyDataSource to represent an individual /// view of a generic data source. /// internal sealed class ReadOnlyDataSourceView : DataSourceView { private IEnumerable _dataSource; public ReadOnlyDataSourceView(ReadOnlyDataSource owner, string name, IEnumerable dataSource) : base(owner, name) { _dataSource = dataSource; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _dataSource; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BufferedReceiveElement.cs
- ParallelTimeline.cs
- RegexCompilationInfo.cs
- CodeCatchClause.cs
- ToolStripSystemRenderer.cs
- ExpandCollapseProviderWrapper.cs
- QuotedPrintableStream.cs
- TypeBuilderInstantiation.cs
- OledbConnectionStringbuilder.cs
- FrameworkContentElement.cs
- XmlDataSourceNodeDescriptor.cs
- UrlPath.cs
- IPGlobalProperties.cs
- XmlChildNodes.cs
- BitmapCacheBrush.cs
- EditBehavior.cs
- FusionWrap.cs
- DataSet.cs
- PtsHost.cs
- MatrixCamera.cs
- WmlControlAdapter.cs
- NameValuePair.cs
- PixelFormatConverter.cs
- DataGridLinkButton.cs
- FixedDSBuilder.cs
- LocatorManager.cs
- CurrentChangingEventManager.cs
- HitTestDrawingContextWalker.cs
- StorageEntitySetMapping.cs
- SQLRoleProvider.cs
- XmlArrayItemAttribute.cs
- FormViewCommandEventArgs.cs
- ThumbAutomationPeer.cs
- RevocationPoint.cs
- UdpDiscoveryEndpointElement.cs
- DbConnectionPoolGroupProviderInfo.cs
- ISAPIRuntime.cs
- MasterPageBuildProvider.cs
- SqlBulkCopyColumnMapping.cs
- ReflectionServiceProvider.cs
- XPathExpr.cs
- diagnosticsswitches.cs
- DesignerValidationSummaryAdapter.cs
- Vector3D.cs
- FixedTextSelectionProcessor.cs
- DeviceContexts.cs
- SqlGenericUtil.cs
- LinkLabel.cs
- WebServiceHandler.cs
- PointAnimationUsingPath.cs
- CheckedPointers.cs
- RequestCachePolicyConverter.cs
- ConfigPathUtility.cs
- ExpressionPrefixAttribute.cs
- HtmlControl.cs
- PageSetupDialog.cs
- PagesSection.cs
- ValuePattern.cs
- Converter.cs
- Assembly.cs
- IHttpResponseInternal.cs
- CssClassPropertyAttribute.cs
- ClientSettingsSection.cs
- ClientSession.cs
- SerializationObjectManager.cs
- ConfigXmlComment.cs
- HashHelper.cs
- CreateUserErrorEventArgs.cs
- SqlFormatter.cs
- Grant.cs
- WorkflowViewStateService.cs
- AlternateViewCollection.cs
- GenericWebPart.cs
- TreeWalker.cs
- SpeechSeg.cs
- _ScatterGatherBuffers.cs
- EventLogPermissionEntryCollection.cs
- ObjectPropertyMapping.cs
- PrintDialog.cs
- SocketElement.cs
- ViewValidator.cs
- PropertyBuilder.cs
- StreamGeometry.cs
- StrokeNodeEnumerator.cs
- GroupBox.cs
- CharAnimationBase.cs
- StreamAsIStream.cs
- InheritanceContextHelper.cs
- Renderer.cs
- OleDbEnumerator.cs
- TypefaceCollection.cs
- SessionStateSection.cs
- CircleEase.cs
- SplineKeyFrames.cs
- RelatedView.cs
- SectionVisual.cs
- GenerateTemporaryTargetAssembly.cs
- IsolatedStorageFilePermission.cs
- BufferedStream.cs
- IndependentAnimationStorage.cs