Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputScopeConverter.cs
- DataGridViewRowHeaderCell.cs
- XmlArrayItemAttribute.cs
- DecimalFormatter.cs
- RectangleGeometry.cs
- versioninfo.cs
- MethodRental.cs
- BoundField.cs
- WebControlParameterProxy.cs
- PersianCalendar.cs
- ProfileParameter.cs
- SHA256Managed.cs
- CaseInsensitiveComparer.cs
- BuildProviderUtils.cs
- ParenthesizePropertyNameAttribute.cs
- RectAnimationClockResource.cs
- PbrsForward.cs
- WaitHandle.cs
- FileClassifier.cs
- ToolStripScrollButton.cs
- MimeWriter.cs
- TransactionContext.cs
- OpCellTreeNode.cs
- GlobalAllocSafeHandle.cs
- FlowDocumentScrollViewer.cs
- TextRangeProviderWrapper.cs
- LambdaCompiler.Address.cs
- streamingZipPartStream.cs
- DBConcurrencyException.cs
- ToolboxItemCollection.cs
- TableAdapterManagerGenerator.cs
- ReaderWriterLock.cs
- QilStrConcat.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AbstractSvcMapFileLoader.cs
- SspiSecurityToken.cs
- WindowsToolbarAsMenu.cs
- ErrorStyle.cs
- ProviderSettings.cs
- SmtpMail.cs
- WebHeaderCollection.cs
- PartitionResolver.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- HttpRawResponse.cs
- CacheModeConverter.cs
- TextTreePropertyUndoUnit.cs
- SHA384Managed.cs
- TextOptions.cs
- BinaryCommonClasses.cs
- DataGridItemAutomationPeer.cs
- TypeDescriptorFilterService.cs
- CacheEntry.cs
- ColorInterpolationModeValidation.cs
- SemanticAnalyzer.cs
- ButtonField.cs
- EditCommandColumn.cs
- EncoderExceptionFallback.cs
- Propagator.ExtentPlaceholderCreator.cs
- HMACSHA512.cs
- ListViewItem.cs
- SessionStateSection.cs
- InternalResources.cs
- TextModifier.cs
- SecurityContext.cs
- UpDownBase.cs
- SqlReorderer.cs
- RuntimeConfigLKG.cs
- ActivityDesignerLayoutSerializers.cs
- DayRenderEvent.cs
- XmlStreamNodeWriter.cs
- TraceHandlerErrorFormatter.cs
- SQLInt64Storage.cs
- Nullable.cs
- TemplateBindingExtension.cs
- AssemblyCache.cs
- Logging.cs
- Util.cs
- AdjustableArrowCap.cs
- PersistChildrenAttribute.cs
- FormViewInsertedEventArgs.cs
- InstallerTypeAttribute.cs
- IApplicationTrustManager.cs
- XamlPointCollectionSerializer.cs
- CollectionsUtil.cs
- DropShadowEffect.cs
- ExpressionVisitor.cs
- PropertyReferenceExtension.cs
- WebBaseEventKeyComparer.cs
- KerberosSecurityTokenAuthenticator.cs
- MultipleViewProviderWrapper.cs
- HtmlInputSubmit.cs
- IERequestCache.cs
- Cell.cs
- SectionVisual.cs
- VisualStyleRenderer.cs
- CodeStatementCollection.cs
- DocumentGrid.cs
- IncrementalReadDecoders.cs
- ArcSegment.cs
- SafeFileMappingHandle.cs