Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / AccessDataSourceView.cs / 1 / AccessDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Security.Permissions; using System.Text; using System.Web.UI; using System.Web.Util; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // 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.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Security.Permissions; using System.Text; using System.Web.UI; using System.Web.Util; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // 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
- ObjectDataSourceEventArgs.cs
- SchemaTableOptionalColumn.cs
- util.cs
- PrivateFontCollection.cs
- FirstQueryOperator.cs
- TraceHandler.cs
- Query.cs
- Context.cs
- XmlMapping.cs
- ElementHostPropertyMap.cs
- ErrorHandlerModule.cs
- DataExchangeServiceBinder.cs
- PriorityChain.cs
- SqlTransaction.cs
- MemoryRecordBuffer.cs
- ThumbAutomationPeer.cs
- ToolConsole.cs
- ModifierKeysConverter.cs
- TargetConverter.cs
- DiscoveryClientOutputChannel.cs
- WebSysDescriptionAttribute.cs
- TreeNodeBinding.cs
- EventSourceCreationData.cs
- TemplateControlParser.cs
- Attributes.cs
- SBCSCodePageEncoding.cs
- AppSettingsExpressionBuilder.cs
- SecureConversationServiceCredential.cs
- CollectionView.cs
- AccessControlList.cs
- ToolStripPanelCell.cs
- KeyEventArgs.cs
- ErrorInfoXmlDocument.cs
- PaintValueEventArgs.cs
- AuthenticationSection.cs
- AdapterDictionary.cs
- EdmProviderManifest.cs
- JoinQueryOperator.cs
- SQLInt32Storage.cs
- WindowsFormsHost.cs
- CheckedPointers.cs
- TcpActivation.cs
- ResourceReader.cs
- BaseAsyncResult.cs
- HotCommands.cs
- HandleCollector.cs
- CreateUserWizardStep.cs
- DoubleUtil.cs
- MenuCommand.cs
- WindowPatternIdentifiers.cs
- SimpleModelProvider.cs
- Stylesheet.cs
- BitmapEffectState.cs
- ValidatorUtils.cs
- BitmapEffectvisualstate.cs
- HtmlInputControl.cs
- BaseTemplatedMobileComponentEditor.cs
- BasePropertyDescriptor.cs
- TimeSpanStorage.cs
- exports.cs
- WebPartsPersonalizationAuthorization.cs
- StringAttributeCollection.cs
- SerializerProvider.cs
- CacheRequest.cs
- TextRangeEditLists.cs
- MethodAccessException.cs
- EdmProperty.cs
- CaseStatement.cs
- DataGridViewButtonCell.cs
- columnmapfactory.cs
- BrowserTree.cs
- AccessDataSourceWizardForm.cs
- SHA1.cs
- Int16Storage.cs
- PageAdapter.cs
- COM2IProvidePropertyBuilderHandler.cs
- CallSiteHelpers.cs
- DictionaryContent.cs
- IndividualDeviceConfig.cs
- XslCompiledTransform.cs
- ProcessModelSection.cs
- Command.cs
- BufferAllocator.cs
- KeyConstraint.cs
- TableItemStyle.cs
- DecimalAnimationBase.cs
- ColorContext.cs
- WebPartMenu.cs
- DependentList.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- _LocalDataStore.cs
- SortDescriptionCollection.cs
- KeyFrames.cs
- GeneratedContractType.cs
- RequestDescription.cs
- TrackingServices.cs
- QuaternionAnimation.cs
- entityreference_tresulttype.cs
- FactoryMaker.cs
- Binding.cs