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
- MimeWriter.cs
- VisualBasicSettingsHandler.cs
- PolicyStatement.cs
- ArrayExtension.cs
- TextDecorationCollectionConverter.cs
- TypeConverters.cs
- DataGridColumnHeaderAutomationPeer.cs
- CalculatedColumn.cs
- TargetInvocationException.cs
- ArglessEventHandlerProxy.cs
- RuleSetDialog.Designer.cs
- WebPartEditorOkVerb.cs
- HtmlTitle.cs
- DataPagerField.cs
- ReferenceEqualityComparer.cs
- WebPartRestoreVerb.cs
- InternalBufferManager.cs
- TreeViewHitTestInfo.cs
- LineBreakRecord.cs
- DrawingCollection.cs
- GlobalItem.cs
- Sql8ConformanceChecker.cs
- InkPresenter.cs
- XmlCharType.cs
- ZipIOExtraFieldZip64Element.cs
- TreeView.cs
- StringUtil.cs
- TheQuery.cs
- CommandCollectionEditor.cs
- PropVariant.cs
- UriParserTemplates.cs
- XamlLoadErrorInfo.cs
- DataGrid.cs
- ResourceDescriptionAttribute.cs
- OdbcConnectionString.cs
- DeviceContexts.cs
- Internal.cs
- LogLogRecordHeader.cs
- DefaultPropertyAttribute.cs
- EntityRecordInfo.cs
- PenThread.cs
- SpeechDetectedEventArgs.cs
- UIElement.cs
- ObjectDataSourceView.cs
- MetaType.cs
- GenericWebPart.cs
- DesignTimeTemplateParser.cs
- ActivityIdHeader.cs
- ObjectDataSourceSelectingEventArgs.cs
- UserControl.cs
- ComponentEvent.cs
- UpdateCommandGenerator.cs
- TypeAccessException.cs
- CodeEntryPointMethod.cs
- SqlCommandBuilder.cs
- InternalConfigHost.cs
- Border.cs
- XmlDataDocument.cs
- RelationshipWrapper.cs
- SafeCoTaskMem.cs
- TreeViewAutomationPeer.cs
- DateTimeOffsetConverter.cs
- WebBrowserProgressChangedEventHandler.cs
- SizeValueSerializer.cs
- MsmqActivation.cs
- DialogResultConverter.cs
- SelectionItemPatternIdentifiers.cs
- ImageAutomationPeer.cs
- ListItemConverter.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- WebServiceErrorEvent.cs
- SafeReversePInvokeHandle.cs
- MsmqMessageSerializationFormat.cs
- BindingWorker.cs
- UserCancellationException.cs
- Bidi.cs
- TextDecorationCollection.cs
- Table.cs
- CompressStream.cs
- SinglePageViewer.cs
- COM2FontConverter.cs
- ContentHostHelper.cs
- AppSettingsReader.cs
- LabelAutomationPeer.cs
- GetReadStreamResult.cs
- bindurihelper.cs
- ConnectionManagementElement.cs
- TerminateDesigner.cs
- ProfileEventArgs.cs
- EventArgs.cs
- DataFieldConverter.cs
- ObfuscateAssemblyAttribute.cs
- PermissionAttributes.cs
- TableRowGroup.cs
- Message.cs
- PropertyFilterAttribute.cs
- Binding.cs
- CaseInsensitiveOrdinalStringComparer.cs
- xml.cs
- CodeAssignStatement.cs