Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NoClickablePointException.cs
- WsatTransactionFormatter.cs
- CompositeActivityTypeDescriptor.cs
- RegexReplacement.cs
- JsonEncodingStreamWrapper.cs
- WebPartManagerInternals.cs
- SettingsSection.cs
- OutputWindow.cs
- OleDbPermission.cs
- cookiecontainer.cs
- Base64Stream.cs
- KerberosSecurityTokenAuthenticator.cs
- HtmlGenericControl.cs
- XmlTextEncoder.cs
- CommonBehaviorsSection.cs
- TextComposition.cs
- EntityDataSource.cs
- HtmlContainerControl.cs
- IsolatedStorageException.cs
- StylusPointPropertyId.cs
- ToolStripControlHost.cs
- XmlNamedNodeMap.cs
- HealthMonitoringSection.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- Geometry.cs
- LineSegment.cs
- StateManagedCollection.cs
- Codec.cs
- ErrorHandlerFaultInfo.cs
- MouseEvent.cs
- PerfService.cs
- ZipFileInfoCollection.cs
- NamedObject.cs
- DesignTimeParseData.cs
- TypeReference.cs
- MetadataPropertyCollection.cs
- InstanceNormalEvent.cs
- RegexCaptureCollection.cs
- SplitContainer.cs
- EndpointDispatcherTable.cs
- ObjectHandle.cs
- ListViewUpdatedEventArgs.cs
- Graphics.cs
- AsyncStreamReader.cs
- ByeMessage11.cs
- RSACryptoServiceProvider.cs
- _LazyAsyncResult.cs
- TypeElementCollection.cs
- SelectionHighlightInfo.cs
- KeyConverter.cs
- ExceptionRoutedEventArgs.cs
- SecurityKeyUsage.cs
- CallTemplateAction.cs
- StatusStrip.cs
- _FtpDataStream.cs
- DragDeltaEventArgs.cs
- ConnectionManagementSection.cs
- FeatureManager.cs
- PropertyChangeTracker.cs
- FormatterConverter.cs
- PipeSecurity.cs
- MediaElement.cs
- CharStorage.cs
- PageCodeDomTreeGenerator.cs
- PropagationProtocolsTracing.cs
- XsdBuildProvider.cs
- CodeLabeledStatement.cs
- Automation.cs
- Span.cs
- Keywords.cs
- ToolStripRenderEventArgs.cs
- documentsequencetextcontainer.cs
- CacheEntry.cs
- CaseKeyBox.ViewModel.cs
- ConnectionManagementElementCollection.cs
- BoundColumn.cs
- CheckBoxAutomationPeer.cs
- WindowsServiceElement.cs
- MDIWindowDialog.cs
- PointAnimation.cs
- CommandHelpers.cs
- EndEvent.cs
- BufferBuilder.cs
- BrowserInteropHelper.cs
- RegexTree.cs
- AdapterUtil.cs
- GeneralTransform2DTo3D.cs
- WorkflowHostingEndpoint.cs
- EventManager.cs
- StreamGeometry.cs
- HttpListenerPrefixCollection.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- StylusSystemGestureEventArgs.cs
- Transaction.cs
- ISCIIEncoding.cs
- RTTrackingProfile.cs
- StatusBarItemAutomationPeer.cs
- WorkItem.cs
- BadImageFormatException.cs
- TextureBrush.cs