Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Form.cs
- Pair.cs
- NetNamedPipeBinding.cs
- TextRangeProviderWrapper.cs
- ListViewUpdateEventArgs.cs
- Behavior.cs
- ToolStripTextBox.cs
- UserControl.cs
- AnnotationObservableCollection.cs
- HuffCodec.cs
- wmiprovider.cs
- AnnouncementSendsAsyncResult.cs
- ReferentialConstraint.cs
- SettingsBindableAttribute.cs
- PathFigureCollection.cs
- MimeMultiPart.cs
- TextEndOfSegment.cs
- SQLConvert.cs
- TextEditorLists.cs
- XmlComplianceUtil.cs
- MsmqIntegrationChannelListener.cs
- BoundConstants.cs
- Random.cs
- SpeakInfo.cs
- SurrogateEncoder.cs
- unsafenativemethodstextservices.cs
- UserPersonalizationStateInfo.cs
- ColumnHeaderConverter.cs
- EditableTreeList.cs
- Descriptor.cs
- LinearQuaternionKeyFrame.cs
- Error.cs
- SiteMapProvider.cs
- TextRunProperties.cs
- SocketPermission.cs
- StyleHelper.cs
- RemoteWebConfigurationHostStream.cs
- FixedPageProcessor.cs
- MetadataExporter.cs
- ReadOnlyAttribute.cs
- RegexCaptureCollection.cs
- XPathDocumentNavigator.cs
- PtsHelper.cs
- ApplicationId.cs
- CurrentTimeZone.cs
- CoTaskMemSafeHandle.cs
- WebControl.cs
- DocumentPageTextView.cs
- Subset.cs
- OdbcFactory.cs
- RequestCachePolicyConverter.cs
- Transform.cs
- SqlUtils.cs
- XComponentModel.cs
- SequentialOutput.cs
- DataGridColumnCollection.cs
- CommandLibraryHelper.cs
- Matrix.cs
- Transform.cs
- ArglessEventHandlerProxy.cs
- TextWriterTraceListener.cs
- StringUtil.cs
- WebServiceHostFactory.cs
- COM2IDispatchConverter.cs
- ViewStateException.cs
- XmlSchemaCollection.cs
- PenContext.cs
- BindingSource.cs
- IncrementalCompileAnalyzer.cs
- CubicEase.cs
- StructureChangedEventArgs.cs
- CommandHelpers.cs
- DateTime.cs
- TextBlockAutomationPeer.cs
- CodeGroup.cs
- Int32AnimationBase.cs
- HuffmanTree.cs
- PenCursorManager.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SqlWebEventProvider.cs
- CompiledQueryCacheKey.cs
- XmlFormatExtensionPrefixAttribute.cs
- SecurityContext.cs
- IntSecurity.cs
- SHA1.cs
- EventMappingSettings.cs
- ToReply.cs
- XmlEncodedRawTextWriter.cs
- _SslStream.cs
- Pointer.cs
- DoubleCollection.cs
- ReadWriteSpinLock.cs
- CallSiteHelpers.cs
- __Filters.cs
- HelpInfo.cs
- MenuEventArgs.cs
- StrokeNode.cs
- SqlMethods.cs
- AsymmetricAlgorithm.cs
- PropertyNames.cs