Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectViewListener.cs
- XsltSettings.cs
- PackageRelationshipCollection.cs
- WindowsEditBoxRange.cs
- MembershipUser.cs
- MeasurementDCInfo.cs
- CodeTryCatchFinallyStatement.cs
- ResXResourceSet.cs
- initElementDictionary.cs
- TableLayoutSettingsTypeConverter.cs
- SimpleTypeResolver.cs
- EndpointDiscoveryMetadata11.cs
- SessionStateModule.cs
- EventLogEntryCollection.cs
- EntityParameter.cs
- HitTestWithPointDrawingContextWalker.cs
- EDesignUtil.cs
- PageEventArgs.cs
- StoreContentChangedEventArgs.cs
- OleDbParameterCollection.cs
- XPathNodeIterator.cs
- XPathDescendantIterator.cs
- PageAsyncTask.cs
- BeginGetFileNameFromUserRequest.cs
- PropertyChangedEventManager.cs
- DataColumnMappingCollection.cs
- SuppressIldasmAttribute.cs
- XmlDocumentFieldSchema.cs
- TreeNodeBindingCollection.cs
- AssociatedControlConverter.cs
- StylusSystemGestureEventArgs.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Msec.cs
- CompilerState.cs
- XappLauncher.cs
- ScopelessEnumAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- _OverlappedAsyncResult.cs
- StateRuntime.cs
- RoutedCommand.cs
- TaiwanLunisolarCalendar.cs
- MarkupCompilePass2.cs
- __Filters.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Stylesheet.cs
- TableLayoutPanelDesigner.cs
- StreamInfo.cs
- AttachInfo.cs
- MetadataArtifactLoaderResource.cs
- CommandBindingCollection.cs
- Application.cs
- UniqueContractNameValidationBehavior.cs
- ActivityTypeDesigner.xaml.cs
- LogRestartAreaEnumerator.cs
- VectorAnimationBase.cs
- DecimalKeyFrameCollection.cs
- PageStatePersister.cs
- ErrorWebPart.cs
- TypeHelper.cs
- ListControl.cs
- Encoding.cs
- DataServiceBehavior.cs
- XamlTreeBuilder.cs
- Operand.cs
- ValidationSummary.cs
- UnsettableComboBox.cs
- WebPartCloseVerb.cs
- CodeLinePragma.cs
- FormClosedEvent.cs
- AnnotationResourceChangedEventArgs.cs
- ListItem.cs
- ClientSettings.cs
- AspProxy.cs
- ControlUtil.cs
- DesignTimeTemplateParser.cs
- LinkedResource.cs
- EventItfInfo.cs
- AutomationFocusChangedEventArgs.cs
- SqlTriggerAttribute.cs
- FixedSchema.cs
- MappingModelBuildProvider.cs
- Int64Storage.cs
- parserscommon.cs
- SecurityTokenSerializer.cs
- PreloadHost.cs
- ISAPIApplicationHost.cs
- FastPropertyAccessor.cs
- DynamicVirtualDiscoSearcher.cs
- Formatter.cs
- WindowsTab.cs
- CurrencyWrapper.cs
- ResXBuildProvider.cs
- XpsColorContext.cs
- VarRefManager.cs
- SqlDataReader.cs
- Span.cs
- AttachedPropertyInfo.cs
- _Connection.cs
- LogExtentCollection.cs
- ClientRoleProvider.cs