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
- DataSourceConverter.cs
- DataRecordInternal.cs
- SoapSchemaImporter.cs
- ExtensionFile.cs
- DataProtectionSecurityStateEncoder.cs
- FileDataSourceCache.cs
- EventArgs.cs
- TransformerConfigurationWizardBase.cs
- ChangeTracker.cs
- ImageAttributes.cs
- RequestQueue.cs
- Configuration.cs
- BitmapSourceSafeMILHandle.cs
- DateTimeFormatInfo.cs
- ControlParameter.cs
- ArrangedElement.cs
- KeyValueSerializer.cs
- CacheModeConverter.cs
- TimeStampChecker.cs
- ExpressionTable.cs
- HierarchicalDataBoundControl.cs
- ServiceObjectContainer.cs
- ObjectDesignerDataSourceView.cs
- TemplateParser.cs
- CodePropertyReferenceExpression.cs
- TypeForwardedToAttribute.cs
- SafeNativeMethods.cs
- SecurityNegotiationException.cs
- ContextTokenTypeConverter.cs
- BamlBinaryReader.cs
- SchemaImporterExtensionElement.cs
- securestring.cs
- NamedElement.cs
- BevelBitmapEffect.cs
- FrameSecurityDescriptor.cs
- SafeWaitHandle.cs
- SpeechUI.cs
- _ConnectStream.cs
- CryptoApi.cs
- DependencyPropertyAttribute.cs
- Helpers.cs
- XmlSchemaAttribute.cs
- BoolExpressionVisitors.cs
- ExtensionWindowHeader.cs
- XmlAttributeCache.cs
- InputScopeNameConverter.cs
- WebServiceErrorEvent.cs
- ColorAnimation.cs
- ToolStripSplitButton.cs
- RTLAwareMessageBox.cs
- CLRBindingWorker.cs
- JoinCqlBlock.cs
- DataGridBoolColumn.cs
- PageAsyncTaskManager.cs
- ClientApiGenerator.cs
- ServiceDescriptionData.cs
- MouseButton.cs
- SurrogateEncoder.cs
- PeerInvitationResponse.cs
- CompiledQuery.cs
- RecognizeCompletedEventArgs.cs
- XmlTextReaderImpl.cs
- LocalizationComments.cs
- FormatConvertedBitmap.cs
- ConfigXmlAttribute.cs
- PeerName.cs
- _ProxyRegBlob.cs
- DomainConstraint.cs
- Light.cs
- ToolStripRenderer.cs
- StyleXamlTreeBuilder.cs
- WorkflowDesignerMessageFilter.cs
- LeaseManager.cs
- PublisherMembershipCondition.cs
- Point4D.cs
- IPPacketInformation.cs
- Color.cs
- PasswordRecovery.cs
- SetIterators.cs
- MatchAttribute.cs
- Transactions.cs
- IndexedString.cs
- UriExt.cs
- ListDictionary.cs
- MouseGestureValueSerializer.cs
- BufferBuilder.cs
- EventSourceCreationData.cs
- XmlArrayItemAttribute.cs
- DBBindings.cs
- MimeTypeAttribute.cs
- SemaphoreFullException.cs
- ILGenerator.cs
- AutoGeneratedFieldProperties.cs
- FormatConvertedBitmap.cs
- _SingleItemRequestCache.cs
- ComponentRenameEvent.cs
- ComponentChangedEvent.cs
- DataGridViewComboBoxColumn.cs
- SafeProcessHandle.cs
- ButtonField.cs