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
- assemblycache.cs
- TextStore.cs
- MaskInputRejectedEventArgs.cs
- TagMapCollection.cs
- CategoryAttribute.cs
- ControlAdapter.cs
- FilteredSchemaElementLookUpTable.cs
- WebUtil.cs
- UInt32Converter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CookieProtection.cs
- LockCookie.cs
- HttpRawResponse.cs
- OrderPreservingMergeHelper.cs
- UserControl.cs
- ScriptingRoleServiceSection.cs
- BitArray.cs
- IdnMapping.cs
- ImageCodecInfoPrivate.cs
- XPathNodeList.cs
- input.cs
- AsymmetricSignatureFormatter.cs
- ConfigurationSectionCollection.cs
- InputScope.cs
- DesignerValidatorAdapter.cs
- ComboBoxRenderer.cs
- NetTcpBindingElement.cs
- TreeBuilder.cs
- ContextMenuService.cs
- FileDialog.cs
- RecognitionEventArgs.cs
- UserControlAutomationPeer.cs
- _KerberosClient.cs
- XmlBinaryReader.cs
- ToolStripPanel.cs
- XmlSerializableReader.cs
- DocumentOutline.cs
- TagNameToTypeMapper.cs
- DayRenderEvent.cs
- HttpListener.cs
- DataIdProcessor.cs
- DesignTimeVisibleAttribute.cs
- ToolBarButton.cs
- StaticExtension.cs
- CategoryNameCollection.cs
- InputScope.cs
- HttpPostedFile.cs
- AuthenticationException.cs
- IntSumAggregationOperator.cs
- ThicknessAnimationBase.cs
- WebPartTracker.cs
- XslException.cs
- ListMarkerLine.cs
- TimeStampChecker.cs
- PropertyValueUIItem.cs
- ListViewInsertedEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- DataConnectionHelper.cs
- StandardTransformFactory.cs
- TransactionContextValidator.cs
- SqlGenericUtil.cs
- CompositeFontInfo.cs
- ButtonStandardAdapter.cs
- MaskedTextBox.cs
- XPathNodeList.cs
- PropertyGridView.cs
- XmlSerializerAssemblyAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- Int16KeyFrameCollection.cs
- RegisteredHiddenField.cs
- WebPartActionVerb.cs
- Certificate.cs
- RSACryptoServiceProvider.cs
- Scripts.cs
- XpsPackagingException.cs
- GraphicsContext.cs
- DiscoveryMessageSequenceGenerator.cs
- BackStopAuthenticationModule.cs
- CompositeCollectionView.cs
- GregorianCalendarHelper.cs
- Pointer.cs
- Application.cs
- DirectionalLight.cs
- StateItem.cs
- InstancePersistenceContext.cs
- FixedSOMSemanticBox.cs
- AssemblyCache.cs
- XmlQualifiedNameTest.cs
- BuildProvidersCompiler.cs
- BCryptNative.cs
- GridItemPatternIdentifiers.cs
- ToolbarAUtomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- LinearGradientBrush.cs
- SrgsRule.cs
- XmlSchemaImporter.cs
- ResourcePool.cs
- KnownTypes.cs
- SetterTriggerConditionValueConverter.cs
- ExpressionParser.cs