Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HandlerElement.cs
- WebServicesDescriptionAttribute.cs
- ConsumerConnectionPointCollection.cs
- RC2.cs
- DataObjectSettingDataEventArgs.cs
- HttpConfigurationSystem.cs
- ModifyActivitiesPropertyDescriptor.cs
- CustomServiceCredentials.cs
- FlagsAttribute.cs
- ResourceExpressionBuilder.cs
- Lease.cs
- ButtonDesigner.cs
- QilBinary.cs
- WebPartManagerInternals.cs
- Accessible.cs
- KeyValueConfigurationElement.cs
- SelectionItemProviderWrapper.cs
- BinaryMethodMessage.cs
- TemplatedMailWebEventProvider.cs
- SectionRecord.cs
- XmlExtensionFunction.cs
- Win32PrintDialog.cs
- OleAutBinder.cs
- RenderCapability.cs
- FeatureSupport.cs
- parserscommon.cs
- XmlCompatibilityReader.cs
- InvokeProviderWrapper.cs
- OleDbParameterCollection.cs
- AttachedPropertyMethodSelector.cs
- SqlDataSourceEnumerator.cs
- ContainerControlDesigner.cs
- DrawingAttributeSerializer.cs
- MatrixTransform3D.cs
- TableCell.cs
- InternalConfigSettingsFactory.cs
- ThreadInterruptedException.cs
- FloatSumAggregationOperator.cs
- Pair.cs
- _StreamFramer.cs
- HashCodeCombiner.cs
- PreDigestedSignedInfo.cs
- DbParameterCollectionHelper.cs
- Preprocessor.cs
- ParameterElementCollection.cs
- TrustSection.cs
- KeyValueSerializer.cs
- StatusInfoItem.cs
- SqlBinder.cs
- XPathSingletonIterator.cs
- ImportDesigner.xaml.cs
- MachineKeyConverter.cs
- RowCache.cs
- ItemsPanelTemplate.cs
- SyndicationLink.cs
- ColorConvertedBitmapExtension.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Rectangle.cs
- EdmValidator.cs
- securitymgrsite.cs
- DocumentOrderQuery.cs
- InspectionWorker.cs
- HierarchicalDataSourceControl.cs
- CheckableControlBaseAdapter.cs
- FreeFormDesigner.cs
- LazyLoadBehavior.cs
- SimpleBitVector32.cs
- DetailsViewDeletedEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- ConfigXmlComment.cs
- ProxyFragment.cs
- SQLGuidStorage.cs
- METAHEADER.cs
- XmlImplementation.cs
- SqlProviderUtilities.cs
- XmlSchemas.cs
- SqlClientWrapperSmiStreamChars.cs
- BulletedListEventArgs.cs
- GestureRecognizer.cs
- COSERVERINFO.cs
- DesignerTransactionCloseEvent.cs
- DNS.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- PrincipalPermission.cs
- pingexception.cs
- FtpCachePolicyElement.cs
- DynamicDiscoveryDocument.cs
- FormParameter.cs
- TileBrush.cs
- SRef.cs
- TextEvent.cs
- JavaScriptString.cs
- httpapplicationstate.cs
- RbTree.cs
- ExpressionBuilderContext.cs
- UndirectedGraph.cs
- XamlVector3DCollectionSerializer.cs
- ProgressPage.cs
- CharacterBuffer.cs
- XmlSchemaRedefine.cs