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
- BeginStoryboard.cs
- GeneralTransform3DGroup.cs
- ProtectedConfiguration.cs
- DataListComponentEditor.cs
- LinqDataSourceSelectEventArgs.cs
- PropertyDescriptor.cs
- EntityProxyFactory.cs
- XmlSchemaExternal.cs
- DefaultTypeArgumentAttribute.cs
- RectangleF.cs
- DecoderFallback.cs
- RenderDataDrawingContext.cs
- designeractionlistschangedeventargs.cs
- HttpWebRequest.cs
- Regex.cs
- SoapRpcServiceAttribute.cs
- RepeatInfo.cs
- DynamicUpdateCommand.cs
- WCFServiceClientProxyGenerator.cs
- SecurityDescriptor.cs
- XmlObjectSerializer.cs
- TriggerCollection.cs
- Page.cs
- EntityType.cs
- Screen.cs
- WindowsRichEditRange.cs
- WebBrowserProgressChangedEventHandler.cs
- Logging.cs
- ByeMessage11.cs
- DocumentXPathNavigator.cs
- MsmqIntegrationChannelListener.cs
- MetafileHeader.cs
- CompiledQuery.cs
- FileChangesMonitor.cs
- HttpConfigurationContext.cs
- Literal.cs
- Context.cs
- ParameterReplacerVisitor.cs
- ProcessProtocolHandler.cs
- Nullable.cs
- ScriptReferenceEventArgs.cs
- ZipIOFileItemStream.cs
- RelationshipType.cs
- Environment.cs
- ProcessingInstructionAction.cs
- TraceLog.cs
- GroupAggregateExpr.cs
- HtmlInputFile.cs
- HMACSHA512.cs
- HMACSHA512.cs
- TransformProviderWrapper.cs
- ArraySortHelper.cs
- BuildManager.cs
- CursorConverter.cs
- AttributeProviderAttribute.cs
- typedescriptorpermission.cs
- ServiceContractListItem.cs
- DataGridTablesFactory.cs
- XPathItem.cs
- SBCSCodePageEncoding.cs
- SqlGenerator.cs
- VerbConverter.cs
- Parser.cs
- FileDialogCustomPlace.cs
- SerializationTrace.cs
- CookieParameter.cs
- ReadOnlyCollectionBase.cs
- ExchangeUtilities.cs
- XmlSchemaSimpleTypeList.cs
- DataStreamFromComStream.cs
- latinshape.cs
- WriterOutput.cs
- UserValidatedEventArgs.cs
- CFStream.cs
- State.cs
- AppSecurityManager.cs
- WeakReferenceList.cs
- QueryPageSettingsEventArgs.cs
- AnnotationObservableCollection.cs
- ComponentEvent.cs
- Cursors.cs
- WinInetCache.cs
- PolyLineSegmentFigureLogic.cs
- ColumnResult.cs
- DurableRuntimeValidator.cs
- TextRenderer.cs
- CustomValidator.cs
- AnnotationHighlightLayer.cs
- externdll.cs
- AppDomainFactory.cs
- RepeaterDesigner.cs
- SamlAttributeStatement.cs
- Int64AnimationBase.cs
- ColumnMapProcessor.cs
- sqlser.cs
- FontDialog.cs
- columnmapfactory.cs
- ScriptServiceAttribute.cs
- OdbcEnvironmentHandle.cs
- ProxyWebPart.cs