Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return 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.Collections; using System.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return 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
- XmlLanguage.cs
- FilterableAttribute.cs
- ExpressionVisitor.cs
- ObjectHandle.cs
- EventProxy.cs
- PointKeyFrameCollection.cs
- ShaperBuffers.cs
- Privilege.cs
- RadioButtonRenderer.cs
- __Filters.cs
- ExpressionPrefixAttribute.cs
- ResourceSetExpression.cs
- MarkerProperties.cs
- AdornerHitTestResult.cs
- CheckBoxPopupAdapter.cs
- NeedSkipTokenVisitor.cs
- ToolStripItemImageRenderEventArgs.cs
- updatecommandorderer.cs
- JapaneseCalendar.cs
- TreeNodeCollection.cs
- ExtentJoinTreeNode.cs
- SafeNativeMethods.cs
- ReachDocumentSequenceSerializer.cs
- XslNumber.cs
- NamedObject.cs
- AutomationPattern.cs
- FixedPageAutomationPeer.cs
- ChannelSinkStacks.cs
- ColumnMapVisitor.cs
- Stream.cs
- CheckBox.cs
- GroupBoxRenderer.cs
- XPathScanner.cs
- PageAction.cs
- AxisAngleRotation3D.cs
- ExecutionEngineException.cs
- TraceSwitch.cs
- SimpleBitVector32.cs
- _DigestClient.cs
- NativeDirectoryServicesQueryAPIs.cs
- TraversalRequest.cs
- DesigntimeLicenseContext.cs
- SchemaTableColumn.cs
- CreatingCookieEventArgs.cs
- EventHandlersStore.cs
- CodeRegionDirective.cs
- WebBrowserBase.cs
- Double.cs
- Typeface.cs
- FormViewCommandEventArgs.cs
- IApplicationTrustManager.cs
- PersistenceTypeAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- RedistVersionInfo.cs
- NavigationPropertyEmitter.cs
- ToolStripRendererSwitcher.cs
- MouseActionConverter.cs
- COM2ColorConverter.cs
- SemaphoreFullException.cs
- OptimalTextSource.cs
- BulletedListEventArgs.cs
- ChangePassword.cs
- CacheDependency.cs
- documentsequencetextview.cs
- HttpContext.cs
- QilReplaceVisitor.cs
- ObjectKeyFrameCollection.cs
- TcpAppDomainProtocolHandler.cs
- TriggerAction.cs
- _FtpControlStream.cs
- SessionState.cs
- CustomMenuItemCollection.cs
- DefaultAsyncDataDispatcher.cs
- IntSecurity.cs
- DBSchemaRow.cs
- AutomationFocusChangedEventArgs.cs
- AppSettingsSection.cs
- ImageMetadata.cs
- NativeMethods.cs
- SimpleRecyclingCache.cs
- LayoutEvent.cs
- figurelength.cs
- CellParagraph.cs
- LogicalExpr.cs
- TextDecoration.cs
- XmlUtilWriter.cs
- FullTextLine.cs
- GeometryDrawing.cs
- ValuePattern.cs
- TextEditorContextMenu.cs
- QueryInterceptorAttribute.cs
- serverconfig.cs
- HyperLinkStyle.cs
- StandardCommandToolStripMenuItem.cs
- EdmSchemaError.cs
- SponsorHelper.cs
- ListViewDeleteEventArgs.cs
- CompilerError.cs
- XmlUtil.cs
- DataGridItem.cs