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
- FaultDescriptionCollection.cs
- HttpRequestCacheValidator.cs
- DomainLiteralReader.cs
- EntityContainer.cs
- DrawingContext.cs
- RawStylusActions.cs
- AxHostDesigner.cs
- AnyReturnReader.cs
- SharedConnectionInfo.cs
- FileVersionInfo.cs
- FrugalMap.cs
- FloaterBaseParagraph.cs
- SQLInt32.cs
- AttributeEmitter.cs
- TextSpanModifier.cs
- PersonalizationProviderCollection.cs
- ComponentResourceKey.cs
- loginstatus.cs
- X509Utils.cs
- ApplicationDirectoryMembershipCondition.cs
- BufferAllocator.cs
- BaseCodeDomTreeGenerator.cs
- AuthorizationSection.cs
- RuntimeEnvironment.cs
- PackWebResponse.cs
- HttpCachePolicyWrapper.cs
- SelectionPattern.cs
- selecteditemcollection.cs
- ObjectIDGenerator.cs
- VScrollProperties.cs
- ToolStripProgressBar.cs
- _ContextAwareResult.cs
- OwnerDrawPropertyBag.cs
- Context.cs
- commandenforcer.cs
- WebPartCloseVerb.cs
- IPGlobalProperties.cs
- ColumnMapVisitor.cs
- PageSettings.cs
- HttpModule.cs
- RichTextBox.cs
- AddInAttribute.cs
- PeerObject.cs
- BulletedListEventArgs.cs
- TextTreePropertyUndoUnit.cs
- RadioButton.cs
- ProcessModelSection.cs
- LayoutEngine.cs
- XmlSchemaInclude.cs
- ArraySortHelper.cs
- PageContentCollection.cs
- _NegoStream.cs
- Rotation3DKeyFrameCollection.cs
- TypographyProperties.cs
- UnhandledExceptionEventArgs.cs
- Parameter.cs
- KeyValuePair.cs
- ManifestSignatureInformation.cs
- QilPatternFactory.cs
- CompletionCallbackWrapper.cs
- TabOrder.cs
- LingerOption.cs
- ListControlConvertEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- TextViewBase.cs
- DecimalStorage.cs
- UnmanagedMarshal.cs
- XmlElementElementCollection.cs
- DesignerSerializationManager.cs
- SettingsPropertyNotFoundException.cs
- StrongNameUtility.cs
- OleDbTransaction.cs
- ICollection.cs
- KeyValuePairs.cs
- ErrorProvider.cs
- LongValidatorAttribute.cs
- HostedController.cs
- TextRange.cs
- SelectionWordBreaker.cs
- TimeSpanValidator.cs
- Renderer.cs
- SqlConnection.cs
- StreamAsIStream.cs
- DataColumnMappingCollection.cs
- JulianCalendar.cs
- RelationshipWrapper.cs
- DoubleAverageAggregationOperator.cs
- ConstraintCollection.cs
- PolygonHotSpot.cs
- ZoneLinkButton.cs
- ReadOnlyTernaryTree.cs
- DataKey.cs
- OdbcInfoMessageEvent.cs
- SafeFileMappingHandle.cs
- NetworkAddressChange.cs
- RegexWorker.cs
- PieceNameHelper.cs
- XmlCollation.cs
- InternalConfigHost.cs
- HistoryEventArgs.cs