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
- LicenseContext.cs
- PrefixQName.cs
- QueueTransferProtocol.cs
- SafeEventHandle.cs
- PageAction.cs
- FontCacheLogic.cs
- GridViewColumnCollectionChangedEventArgs.cs
- WindowHideOrCloseTracker.cs
- RectKeyFrameCollection.cs
- InputScope.cs
- IUnknownConstantAttribute.cs
- XmlAttributes.cs
- ConsumerConnectionPointCollection.cs
- RuleInfoComparer.cs
- Assembly.cs
- ProbeMatchesMessageCD1.cs
- GeneratedCodeAttribute.cs
- PointLightBase.cs
- Code.cs
- SqlBooleanMismatchVisitor.cs
- SerialReceived.cs
- ClientFormsAuthenticationMembershipProvider.cs
- LayoutSettings.cs
- TrustLevel.cs
- WindowsAltTab.cs
- CompiledQueryCacheEntry.cs
- MouseButton.cs
- ClientSponsor.cs
- SiteMapPath.cs
- FileInfo.cs
- PropertyCondition.cs
- WSTransactionSection.cs
- HtmlImage.cs
- cookie.cs
- TextureBrush.cs
- SystemIcmpV4Statistics.cs
- DirtyTextRange.cs
- AffineTransform3D.cs
- ToolStripOverflowButton.cs
- TraceHandlerErrorFormatter.cs
- HandleExceptionArgs.cs
- AddressHeader.cs
- CodeParameterDeclarationExpression.cs
- ArrayWithOffset.cs
- RemoteCryptoSignHashRequest.cs
- PlaceHolder.cs
- Errors.cs
- FormsAuthenticationConfiguration.cs
- PerformanceCounterPermissionEntry.cs
- WindowsPrincipal.cs
- LinqDataView.cs
- _BasicClient.cs
- AutomationElement.cs
- DisplayMemberTemplateSelector.cs
- ReadWriteSpinLock.cs
- Nullable.cs
- LineUtil.cs
- XmlByteStreamWriter.cs
- SequenceRangeCollection.cs
- ObjectViewEntityCollectionData.cs
- RadioButtonAutomationPeer.cs
- CaretElement.cs
- DirectoryNotFoundException.cs
- SystemNetworkInterface.cs
- SoapReflector.cs
- PathGeometry.cs
- ToolboxItem.cs
- Html32TextWriter.cs
- TripleDES.cs
- InternalRelationshipCollection.cs
- MimeParameter.cs
- CursorConverter.cs
- ActivityDelegate.cs
- StrokeNodeOperations2.cs
- AddInEnvironment.cs
- DataTableTypeConverter.cs
- SchemaImporterExtensionElementCollection.cs
- SelectionProcessor.cs
- XmlSchemaAny.cs
- PathTooLongException.cs
- SimpleTextLine.cs
- WindowsProgressbar.cs
- ListManagerBindingsCollection.cs
- SqlTransaction.cs
- OleDbCommandBuilder.cs
- FamilyMapCollection.cs
- CodeNamespace.cs
- CompositionCommandSet.cs
- DataTemplate.cs
- ServiceErrorHandler.cs
- VerificationException.cs
- TypeDescriptor.cs
- MarkupProperty.cs
- CookieHandler.cs
- _RequestCacheProtocol.cs
- shaper.cs
- DrawingState.cs
- DataColumn.cs
- RijndaelManagedTransform.cs
- PointValueSerializer.cs