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
- XmlNamespaceManager.cs
- AsyncOperation.cs
- PublisherIdentityPermission.cs
- StateMachineHelpers.cs
- XamlInt32CollectionSerializer.cs
- SizeValueSerializer.cs
- ArrayElementGridEntry.cs
- EditorPartCollection.cs
- Link.cs
- SqlMethodAttribute.cs
- BlobPersonalizationState.cs
- HitTestWithPointDrawingContextWalker.cs
- Psha1DerivedKeyGenerator.cs
- NullExtension.cs
- QEncodedStream.cs
- DesignerProperties.cs
- SqlServices.cs
- MatchNoneMessageFilter.cs
- SizeAnimationClockResource.cs
- FixedSOMPage.cs
- RichTextBoxAutomationPeer.cs
- BroadcastEventHelper.cs
- MessageDesigner.cs
- RecoverInstanceLocksCommand.cs
- Label.cs
- SignedPkcs7.cs
- AttachmentService.cs
- SourceFilter.cs
- AvTrace.cs
- ValueChangedEventManager.cs
- OpCellTreeNode.cs
- StickyNoteHelper.cs
- AutoGeneratedFieldProperties.cs
- XXXInfos.cs
- DropAnimation.xaml.cs
- StrokeIntersection.cs
- ProxyHwnd.cs
- Guid.cs
- DateTimePicker.cs
- ValidationResult.cs
- StreamUpdate.cs
- OLEDB_Enum.cs
- ImageListStreamer.cs
- HopperCache.cs
- UIElementIsland.cs
- DeviceSpecificDialogCachedState.cs
- TextSerializer.cs
- DataSourceXmlSerializer.cs
- SerTrace.cs
- NamedPipeTransportBindingElement.cs
- HitTestFilterBehavior.cs
- DesignerActionUI.cs
- HttpApplication.cs
- TemplateParser.cs
- LockedBorderGlyph.cs
- BooleanConverter.cs
- FocusWithinProperty.cs
- FloaterParaClient.cs
- TextTreeTextNode.cs
- DataGridViewHitTestInfo.cs
- Rect3DValueSerializer.cs
- XmlSchemaSequence.cs
- XmlSchemaAny.cs
- XamlPathDataSerializer.cs
- UnaryExpression.cs
- ManifestSignedXml.cs
- UrlPath.cs
- Tuple.cs
- WindowVisualStateTracker.cs
- SID.cs
- MILUtilities.cs
- ResourcePool.cs
- XmlReturnReader.cs
- XmlValidatingReaderImpl.cs
- safelink.cs
- IndexedWhereQueryOperator.cs
- RC2CryptoServiceProvider.cs
- StaticSiteMapProvider.cs
- _UriTypeConverter.cs
- TypeForwardedToAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- AutomationEvent.cs
- FormView.cs
- CellCreator.cs
- PackagePartCollection.cs
- DiscoveryClientOutputChannel.cs
- FormViewCommandEventArgs.cs
- ContentFilePart.cs
- ScriptReferenceBase.cs
- MulticastIPAddressInformationCollection.cs
- Model3D.cs
- Floater.cs
- RemoteWebConfigurationHostServer.cs
- AdvancedBindingEditor.cs
- ContentControl.cs
- LinkArea.cs
- DataGridViewCellMouseEventArgs.cs
- ItemMap.cs
- UniqueConstraint.cs
- SessionIDManager.cs