Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BevelBitmapEffect.cs
- ToolstripProfessionalRenderer.cs
- UriParserTemplates.cs
- AssemblyAttributesGoHere.cs
- SHA1Managed.cs
- ConfigurationLocation.cs
- UserNameSecurityTokenParameters.cs
- DTCTransactionManager.cs
- AppearanceEditorPart.cs
- AdRotator.cs
- ListViewDeletedEventArgs.cs
- TabletCollection.cs
- TagMapInfo.cs
- PerfCounterSection.cs
- ListManagerBindingsCollection.cs
- PageContentCollection.cs
- WebControl.cs
- ContentPathSegment.cs
- DashStyles.cs
- InternalsVisibleToAttribute.cs
- DataBinder.cs
- ToolboxItemAttribute.cs
- PagerSettings.cs
- SinglePhaseEnlistment.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ClientUrlResolverWrapper.cs
- WebServiceData.cs
- XmlFormatExtensionPointAttribute.cs
- SqlUnionizer.cs
- HistoryEventArgs.cs
- DesignerMetadata.cs
- WebRequestModulesSection.cs
- JoinElimination.cs
- Guid.cs
- Int32.cs
- ModelPropertyDescriptor.cs
- RefType.cs
- SmiContextFactory.cs
- PartitionedStream.cs
- AttachedAnnotationChangedEventArgs.cs
- GridViewCancelEditEventArgs.cs
- HttpWrapper.cs
- CreateRefExpr.cs
- SHA1CryptoServiceProvider.cs
- NaturalLanguageHyphenator.cs
- TransformerTypeCollection.cs
- TextPatternIdentifiers.cs
- TakeOrSkipWhileQueryOperator.cs
- Debugger.cs
- Compiler.cs
- ToolStripComboBox.cs
- HtmlTableCellCollection.cs
- VisualProxy.cs
- IgnorePropertiesAttribute.cs
- WriteableBitmap.cs
- DesignerLoader.cs
- SizeKeyFrameCollection.cs
- Button.cs
- dataSvcMapFileLoader.cs
- Storyboard.cs
- XsdValidatingReader.cs
- Quaternion.cs
- ControlDesignerState.cs
- DataGridViewElement.cs
- SymbolType.cs
- MatrixAnimationBase.cs
- DataTemplateKey.cs
- RawMouseInputReport.cs
- ProgressBarBrushConverter.cs
- MediaContextNotificationWindow.cs
- RunClient.cs
- Delegate.cs
- ImageInfo.cs
- CacheForPrimitiveTypes.cs
- Stopwatch.cs
- SettingsBase.cs
- UIElement3D.cs
- TagPrefixInfo.cs
- TreeChangeInfo.cs
- Overlapped.cs
- IImplicitResourceProvider.cs
- CellIdBoolean.cs
- DataStreams.cs
- WebPartDescriptionCollection.cs
- sqlcontext.cs
- AbandonedMutexException.cs
- _ConnectOverlappedAsyncResult.cs
- ParameterCollection.cs
- TypeLoadException.cs
- DesignerForm.cs
- PropertyConverter.cs
- EpmSyndicationContentDeSerializer.cs
- SynchronizedDispatch.cs
- PropertyEmitterBase.cs
- RoleExceptions.cs
- Parsers.cs
- Page.cs
- AutoResetEvent.cs
- BamlStream.cs
- EncoderNLS.cs