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
- HwndProxyElementProvider.cs
- ToolStripItemRenderEventArgs.cs
- PopupRootAutomationPeer.cs
- EmptyReadOnlyDictionaryInternal.cs
- MarshalByValueComponent.cs
- IIS7UserPrincipal.cs
- TreeIterator.cs
- IndentedWriter.cs
- AttributeExtensions.cs
- FrameworkRichTextComposition.cs
- StructuredTypeEmitter.cs
- HttpApplication.cs
- XmlSchemaImport.cs
- OrderedDictionary.cs
- InvalidOperationException.cs
- AnnotationService.cs
- PtsPage.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- AppDomainProtocolHandler.cs
- RenderContext.cs
- PersonalizablePropertyEntry.cs
- UnknownWrapper.cs
- ConstraintStruct.cs
- ToolStripHighContrastRenderer.cs
- DirectionalLight.cs
- DoubleAverageAggregationOperator.cs
- CustomErrorsSectionWrapper.cs
- WmlMobileTextWriter.cs
- Rect.cs
- MetadataArtifactLoaderFile.cs
- CancelRequestedRecord.cs
- AmbiguousMatchException.cs
- SessionStateSection.cs
- SystemKeyConverter.cs
- EventLogException.cs
- AsyncCodeActivityContext.cs
- EdmToObjectNamespaceMap.cs
- EntityReference.cs
- Slider.cs
- Size3D.cs
- SrgsElementList.cs
- State.cs
- GZipStream.cs
- VisualStyleInformation.cs
- JsonQueryStringConverter.cs
- HandlerFactoryWrapper.cs
- DataBindingList.cs
- IdentityHolder.cs
- RelatedPropertyManager.cs
- TypeForwardedToAttribute.cs
- PeerValidationBehavior.cs
- DataExpression.cs
- ScrollPattern.cs
- ObjectContextServiceProvider.cs
- InternalConfigRoot.cs
- BaseHashHelper.cs
- BlobPersonalizationState.cs
- SerializationFieldInfo.cs
- rsa.cs
- CapabilitiesAssignment.cs
- GACIdentityPermission.cs
- UDPClient.cs
- ExpressionBuilderContext.cs
- HttpApplicationFactory.cs
- MarkupCompiler.cs
- SecurityUniqueId.cs
- CommentAction.cs
- TextPointer.cs
- SqlConnectionPoolProviderInfo.cs
- StructuredTypeEmitter.cs
- XmlSchemaDatatype.cs
- WorkItem.cs
- unitconverter.cs
- XmlIlGenerator.cs
- GifBitmapDecoder.cs
- VariableAction.cs
- PostBackOptions.cs
- UriTemplateCompoundPathSegment.cs
- LicenseManager.cs
- CompletionProxy.cs
- FormViewPageEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- DriveNotFoundException.cs
- sqlnorm.cs
- OrderedDictionary.cs
- propertytag.cs
- ShutDownListener.cs
- TypeUnloadedException.cs
- ToolStripDropDownClosingEventArgs.cs
- HttpCacheParams.cs
- Confirm.cs
- HttpGetServerProtocol.cs
- ADMembershipProvider.cs
- ResourceDictionary.cs
- OdbcStatementHandle.cs
- ApplicationHost.cs
- TemplateControlParser.cs
- ConfigurationLocationCollection.cs
- EntityDataSourceView.cs
- DesignerSerializationOptionsAttribute.cs