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 / 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
- SchemaElementDecl.cs
- GroupByQueryOperator.cs
- FtpWebResponse.cs
- BindToObject.cs
- EdmProperty.cs
- ContentDisposition.cs
- ProxyManager.cs
- AdornedElementPlaceholder.cs
- TextElementCollection.cs
- MenuEventArgs.cs
- SubpageParaClient.cs
- SchemaNamespaceManager.cs
- ColorTransform.cs
- ToolstripProfessionalRenderer.cs
- DynamicRenderer.cs
- TemplatingOptionsDialog.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ConstraintStruct.cs
- Span.cs
- XPathExpr.cs
- HTTPNotFoundHandler.cs
- BamlRecordWriter.cs
- XPathSelectionIterator.cs
- CodeGen.cs
- OdbcInfoMessageEvent.cs
- CqlBlock.cs
- RegexBoyerMoore.cs
- DataGridViewLayoutData.cs
- TextEditorTyping.cs
- Mapping.cs
- ListCollectionView.cs
- TransformBlockRequest.cs
- Bits.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- COM2ColorConverter.cs
- TableItemPattern.cs
- SlotInfo.cs
- HostedTransportConfigurationBase.cs
- TextBounds.cs
- TableParaClient.cs
- SystemWebSectionGroup.cs
- DataGridViewRowsAddedEventArgs.cs
- SortDescription.cs
- TextTreeText.cs
- StoreAnnotationsMap.cs
- ObjectDataSourceStatusEventArgs.cs
- OptimalBreakSession.cs
- Image.cs
- TimerEventSubscription.cs
- RootProfilePropertySettingsCollection.cs
- TagPrefixCollection.cs
- PointLight.cs
- AnchoredBlock.cs
- FixedDocument.cs
- MulticastIPAddressInformationCollection.cs
- WinCategoryAttribute.cs
- ConsoleTraceListener.cs
- ResizeBehavior.cs
- MessageHeaderDescriptionCollection.cs
- UriTemplateEquivalenceComparer.cs
- TextServicesProperty.cs
- InternalConfigSettingsFactory.cs
- BinaryConverter.cs
- wmiprovider.cs
- _ProxyChain.cs
- MediaPlayer.cs
- Vector3DAnimationUsingKeyFrames.cs
- ListViewHitTestInfo.cs
- InfoCardBinaryReader.cs
- WbemProvider.cs
- BitmapEditor.cs
- UrlMappingsModule.cs
- InvalidateEvent.cs
- Operator.cs
- Storyboard.cs
- InProcStateClientManager.cs
- RijndaelManaged.cs
- FileDialog.cs
- DataGridViewComboBoxEditingControl.cs
- Transform.cs
- SerializationAttributes.cs
- IgnoreSectionHandler.cs
- CompilerInfo.cs
- SequentialActivityDesigner.cs
- CellIdBoolean.cs
- ZipIOBlockManager.cs
- TableItemPattern.cs
- ManagementEventArgs.cs
- WsdlInspector.cs
- SecurityUtils.cs
- Console.cs
- Documentation.cs
- PerfCounters.cs
- ImageBrush.cs
- StrongNameKeyPair.cs
- CharacterString.cs
- HelpInfo.cs
- MimeBasePart.cs
- MetaType.cs
- ManagementDateTime.cs