Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ReadOnlyDataSourceView.cs / 1305376 / 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
- WindowsRichEditRange.cs
- CodeMemberEvent.cs
- BitmapInitialize.cs
- GPRECTF.cs
- XmlValueConverter.cs
- M3DUtil.cs
- QilInvoke.cs
- TypedTableHandler.cs
- HttpWebRequest.cs
- ClassDataContract.cs
- thaishape.cs
- AdPostCacheSubstitution.cs
- BypassElement.cs
- SyndicationDeserializer.cs
- ListBoxItem.cs
- ButtonField.cs
- ServiceCredentials.cs
- ToolBarButtonDesigner.cs
- MethodBody.cs
- XmlSchemaSimpleType.cs
- StrokeFIndices.cs
- XappLauncher.cs
- DoubleCollectionValueSerializer.cs
- CommandExpr.cs
- Function.cs
- FatalException.cs
- ColumnClickEvent.cs
- XPathBuilder.cs
- TableLayoutPanelDesigner.cs
- BindingManagerDataErrorEventArgs.cs
- DbConnectionPool.cs
- EventProviderWriter.cs
- ToolStripPanelRow.cs
- XmlSchemaSubstitutionGroup.cs
- SQLInt32.cs
- XmlSerializerAssemblyAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- HMACRIPEMD160.cs
- TextProperties.cs
- HighlightComponent.cs
- Cursors.cs
- SelectionRange.cs
- EventLogEntry.cs
- IndexerNameAttribute.cs
- ProgressBar.cs
- CmsInterop.cs
- Directory.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompilationSection.cs
- BuildResultCache.cs
- DnsPermission.cs
- IMembershipProvider.cs
- COM2FontConverter.cs
- FrameworkObject.cs
- PropertyEmitter.cs
- SerialPort.cs
- IPGlobalProperties.cs
- TraceListeners.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ColumnMapProcessor.cs
- ExpressionPrefixAttribute.cs
- StylusPointProperties.cs
- ProjectionCamera.cs
- WinInet.cs
- Int32EqualityComparer.cs
- OdbcErrorCollection.cs
- XPathNodeIterator.cs
- TypeElement.cs
- Typography.cs
- Camera.cs
- WebPartTransformerAttribute.cs
- Point3DAnimation.cs
- JavaScriptSerializer.cs
- RowBinding.cs
- DataServiceRequest.cs
- DataGridViewRowConverter.cs
- SqlGatherConsumedAliases.cs
- EntitySetBase.cs
- Baml6Assembly.cs
- UnknownBitmapDecoder.cs
- HandoffBehavior.cs
- DataGridViewColumnHeaderCell.cs
- DataSourceView.cs
- EdmError.cs
- StringConcat.cs
- ButtonFlatAdapter.cs
- EntityProviderServices.cs
- CatalogZoneDesigner.cs
- HttpResponseInternalBase.cs
- ProgressBarAutomationPeer.cs
- MaskInputRejectedEventArgs.cs
- ActivityXRefPropertyEditor.cs
- OdbcCommand.cs
- QueryTaskGroupState.cs
- TextEffect.cs
- StateChangeEvent.cs
- ByteStream.cs
- ResourceContainer.cs
- RegistrationContext.cs
- ProcessThreadCollection.cs