Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1305376 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Web; using System.Web.UI; 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.Web; using System.Web.UI; 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
- XmlCharCheckingWriter.cs
- AsyncOperation.cs
- _Win32.cs
- ChildDocumentBlock.cs
- GacUtil.cs
- AnimationException.cs
- Array.cs
- FormViewPagerRow.cs
- TokenizerHelper.cs
- UnsafeNativeMethods.cs
- SmtpAuthenticationManager.cs
- NetworkStream.cs
- ProxyWebPart.cs
- SymbolTable.cs
- WebRequestModulesSection.cs
- StdRegProviderWrapper.cs
- fixedPageContentExtractor.cs
- DependencyPropertyHelper.cs
- MetadataCache.cs
- Compress.cs
- BrowserDefinitionCollection.cs
- SerializationHelper.cs
- DrawingContext.cs
- XmlSubtreeReader.cs
- WebColorConverter.cs
- ProcessModule.cs
- PocoEntityKeyStrategy.cs
- HyperLink.cs
- JumpTask.cs
- PermissionRequestEvidence.cs
- ToolStripCollectionEditor.cs
- HttpContextWrapper.cs
- ComponentResourceKeyConverter.cs
- Matrix.cs
- XmlLoader.cs
- XmlTextReader.cs
- SingleObjectCollection.cs
- DataGridCell.cs
- _AutoWebProxyScriptWrapper.cs
- BlurBitmapEffect.cs
- ObjectItemAssemblyLoader.cs
- DoubleKeyFrameCollection.cs
- CryptoHelper.cs
- DataContext.cs
- StylusSystemGestureEventArgs.cs
- ToolStripButton.cs
- MessageSmuggler.cs
- TripleDES.cs
- DataBoundControlDesigner.cs
- Asn1IntegerConverter.cs
- TypeUtil.cs
- shaperfactory.cs
- ConfigurationSectionGroup.cs
- DeclarativeCatalogPart.cs
- FastEncoder.cs
- LicFileLicenseProvider.cs
- DrawingState.cs
- ReferenceEqualityComparer.cs
- MsmqAppDomainProtocolHandler.cs
- ThreadAttributes.cs
- Paragraph.cs
- WsdlInspector.cs
- DataReaderContainer.cs
- RemoteWebConfigurationHostStream.cs
- DataGridViewControlCollection.cs
- ImageFormat.cs
- oledbconnectionstring.cs
- TextTreeUndoUnit.cs
- BulletedList.cs
- TripleDESCryptoServiceProvider.cs
- Int32EqualityComparer.cs
- Soap12ProtocolImporter.cs
- ListArgumentProvider.cs
- SHA1Managed.cs
- SystemEvents.cs
- TextTreeText.cs
- PaintEvent.cs
- ListViewGroupItemCollection.cs
- UiaCoreTypesApi.cs
- MatrixIndependentAnimationStorage.cs
- ExceptionHandler.cs
- Mouse.cs
- ReadOnlyHierarchicalDataSource.cs
- WebBrowsableAttribute.cs
- ToolStripTextBox.cs
- Rectangle.cs
- IndexerNameAttribute.cs
- DrawingState.cs
- IndexedString.cs
- FontEmbeddingManager.cs
- IntPtr.cs
- PagesChangedEventArgs.cs
- PermissionRequestEvidence.cs
- TabletDevice.cs
- ResourceDisplayNameAttribute.cs
- TraceSection.cs
- ImageAnimator.cs
- LocalTransaction.cs
- Selector.cs
- ListControl.cs