Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- IProvider.cs
- BoundingRectTracker.cs
- ResXResourceSet.cs
- HwndProxyElementProvider.cs
- DelegateArgument.cs
- Ref.cs
- DrawingImage.cs
- SendKeys.cs
- PageWrapper.cs
- AddInProcess.cs
- Model3DGroup.cs
- DocumentPageHost.cs
- ConfigurationSectionGroupCollection.cs
- SynchronizationContext.cs
- RequestCachePolicy.cs
- SafeFileMappingHandle.cs
- PersonalizationStateQuery.cs
- ConsumerConnectionPoint.cs
- DataComponentGenerator.cs
- MetadataProperty.cs
- SizeChangedInfo.cs
- NativeRightsManagementAPIsStructures.cs
- WebPartAuthorizationEventArgs.cs
- ScrollBarRenderer.cs
- ISAPIRuntime.cs
- CodeVariableDeclarationStatement.cs
- DesignerToolStripControlHost.cs
- MLangCodePageEncoding.cs
- entityreference_tresulttype.cs
- AddDataControlFieldDialog.cs
- XmlSchemaObjectTable.cs
- Path.cs
- WindowsGraphics.cs
- NotifyParentPropertyAttribute.cs
- CharKeyFrameCollection.cs
- PathGradientBrush.cs
- XmlSiteMapProvider.cs
- ContextDataSourceContextData.cs
- ComMethodElement.cs
- PropertyIDSet.cs
- _NetRes.cs
- TrustManager.cs
- Pair.cs
- SerialReceived.cs
- glyphs.cs
- PublishLicense.cs
- Graphics.cs
- CommentEmitter.cs
- KoreanCalendar.cs
- DecoratedNameAttribute.cs
- NonSerializedAttribute.cs
- CompressedStack.cs
- ContentOperations.cs
- SchemaManager.cs
- XmlnsCompatibleWithAttribute.cs
- WindowsPrincipal.cs
- UnsupportedPolicyOptionsException.cs
- FlowDocumentPage.cs
- X509Utils.cs
- SectionRecord.cs
- xmlsaver.cs
- HotSpotCollection.cs
- StaticContext.cs
- XmlSequenceWriter.cs
- DbExpressionVisitor_TResultType.cs
- ValidationResult.cs
- bidPrivateBase.cs
- TemplateBindingExtension.cs
- DataRow.cs
- ResourceDescriptionAttribute.cs
- GridViewUpdateEventArgs.cs
- TransportOutputChannel.cs
- ProxyHelper.cs
- ResourcesBuildProvider.cs
- XPathParser.cs
- StylusPlugInCollection.cs
- PngBitmapEncoder.cs
- DataControlCommands.cs
- DataGridLinkButton.cs
- BaseCAMarshaler.cs
- DefaultClaimSet.cs
- XmlQueryCardinality.cs
- HtmlButton.cs
- ClassImporter.cs
- TabControlCancelEvent.cs
- DbConnectionStringCommon.cs
- NameValueCollection.cs
- HijriCalendar.cs
- SystemIPAddressInformation.cs
- PenContext.cs
- ColorAnimationUsingKeyFrames.cs
- sqlcontext.cs
- ConfigurationCollectionAttribute.cs
- Encoder.cs
- ListItem.cs
- SqlConnectionFactory.cs
- SimpleRecyclingCache.cs
- XmlProcessingInstruction.cs
- Propagator.ExtentPlaceholderCreator.cs
- WebGetAttribute.cs