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
- SetIterators.cs
- DataConnectionHelper.cs
- LinkedResourceCollection.cs
- DataGridTableCollection.cs
- CustomPopupPlacement.cs
- ServicesUtilities.cs
- BinHexEncoder.cs
- LogRecordSequence.cs
- XsltInput.cs
- ImageCreator.cs
- Imaging.cs
- EventSinkHelperWriter.cs
- DesignerSerializationVisibilityAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- ApplicationManager.cs
- QuaternionConverter.cs
- SettingsPropertyValueCollection.cs
- ButtonPopupAdapter.cs
- DateBoldEvent.cs
- HttpListenerContext.cs
- DesignerDeviceConfig.cs
- ExternalDataExchangeService.cs
- RegexGroupCollection.cs
- ObjectTag.cs
- XmlChildNodes.cs
- DataQuery.cs
- XPathScanner.cs
- TdsParserHelperClasses.cs
- InputScopeNameConverter.cs
- PathTooLongException.cs
- ComponentManagerBroker.cs
- MarkupCompilePass1.cs
- LinkedList.cs
- WrapPanel.cs
- ProviderManager.cs
- DockPattern.cs
- FunctionOverloadResolver.cs
- Timer.cs
- DataGridViewSortCompareEventArgs.cs
- SecurityMode.cs
- XmlSchemaValidator.cs
- PrivilegedConfigurationManager.cs
- WebPartHeaderCloseVerb.cs
- DiffuseMaterial.cs
- ConnectionPointGlyph.cs
- ToolStripDropDownClosingEventArgs.cs
- MultiSelectRootGridEntry.cs
- FormsAuthenticationTicket.cs
- TableCell.cs
- CellParaClient.cs
- ProfileEventArgs.cs
- QueryStringParameter.cs
- PointUtil.cs
- CardSpacePolicyElement.cs
- DataFormat.cs
- GradientSpreadMethodValidation.cs
- CompilerTypeWithParams.cs
- UiaCoreApi.cs
- webbrowsersite.cs
- ToolStripItemImageRenderEventArgs.cs
- OdbcInfoMessageEvent.cs
- _CookieModule.cs
- Header.cs
- FeatureSupport.cs
- TextStore.cs
- MultiBindingExpression.cs
- CheckableControlBaseAdapter.cs
- OLEDB_Enum.cs
- SymLanguageType.cs
- TagPrefixInfo.cs
- controlskin.cs
- EntityDataSourceConfigureObjectContext.cs
- PointHitTestParameters.cs
- MetadataPropertyCollection.cs
- HandlerBase.cs
- CreateUserWizardStep.cs
- LicenseManager.cs
- _OverlappedAsyncResult.cs
- ServiceOperation.cs
- DelimitedListTraceListener.cs
- DataSet.cs
- ContentTextAutomationPeer.cs
- AttachedPropertyInfo.cs
- CompilationUtil.cs
- CompilerParameters.cs
- RotateTransform.cs
- CounterSample.cs
- CallbackException.cs
- SmtpException.cs
- EndpointReference.cs
- COM2PictureConverter.cs
- SqlXmlStorage.cs
- SessionEndingEventArgs.cs
- ConfigurationLockCollection.cs
- PasswordRecovery.cs
- MergeEnumerator.cs
- XmlSchemaAll.cs
- InvalidMessageContractException.cs
- MachineKeySection.cs
- XPathNavigator.cs