Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpResponseBase.cs
- ObjectResult.cs
- LinqDataSourceStatusEventArgs.cs
- GridViewCommandEventArgs.cs
- HtmlInputControl.cs
- TypographyProperties.cs
- LassoHelper.cs
- ToolboxSnapDragDropEventArgs.cs
- ConnectionManagementElementCollection.cs
- ReachSerializableProperties.cs
- BinaryFormatterWriter.cs
- EventHandlers.cs
- ObjectQuery.cs
- ToolTip.cs
- PathFigureCollection.cs
- TypeBuilder.cs
- Operator.cs
- SoapSchemaExporter.cs
- XomlCompilerHelpers.cs
- ManifestResourceInfo.cs
- KeyboardNavigation.cs
- MsmqInputChannelListenerBase.cs
- Effect.cs
- CustomCategoryAttribute.cs
- storepermissionattribute.cs
- MimeTypeMapper.cs
- TreeViewCancelEvent.cs
- ReadOnlyKeyedCollection.cs
- PhoneCallDesigner.cs
- SharedPerformanceCounter.cs
- InlineCollection.cs
- ItemsControlAutomationPeer.cs
- SystemIPAddressInformation.cs
- Propagator.ExtentPlaceholderCreator.cs
- DataServiceConfiguration.cs
- DllNotFoundException.cs
- QueryableDataSourceEditData.cs
- AttachedPropertyMethodSelector.cs
- UntrustedRecipientException.cs
- SqlDeflator.cs
- StateChangeEvent.cs
- PropertyDescriptorComparer.cs
- DataReaderContainer.cs
- EditorAttribute.cs
- ThemeableAttribute.cs
- DerivedKeySecurityTokenStub.cs
- StreamInfo.cs
- ListViewItemSelectionChangedEvent.cs
- X509Utils.cs
- DictionaryEditChange.cs
- Point3DCollectionConverter.cs
- ConstrainedDataObject.cs
- Package.cs
- ConnectionProviderAttribute.cs
- NonVisualControlAttribute.cs
- ManagementObjectSearcher.cs
- PropertyGroupDescription.cs
- XmlSchemaCompilationSettings.cs
- CodeGroup.cs
- ImageMapEventArgs.cs
- FileNotFoundException.cs
- LingerOption.cs
- TreeNodeCollection.cs
- DateBoldEvent.cs
- PagerSettings.cs
- Lease.cs
- MessageQueuePermissionEntry.cs
- __Error.cs
- PhonemeConverter.cs
- HttpRequestCacheValidator.cs
- SendKeys.cs
- DispatcherEventArgs.cs
- MappingMetadataHelper.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BaseHashHelper.cs
- ToolStripItemClickedEventArgs.cs
- Clipboard.cs
- ApplicationFileParser.cs
- ViewPort3D.cs
- ParameterModifier.cs
- ViewBase.cs
- SQLChars.cs
- GlobalItem.cs
- DelegatingTypeDescriptionProvider.cs
- ComplexTypeEmitter.cs
- FileChangesMonitor.cs
- GorillaCodec.cs
- CalendarDataBindingHandler.cs
- ProviderBase.cs
- HScrollBar.cs
- XsdDateTime.cs
- SelectionProviderWrapper.cs
- ListParagraph.cs
- LinkedList.cs
- sqlser.cs
- HttpRequest.cs
- RowUpdatedEventArgs.cs
- TraceEventCache.cs
- SessionEndingEventArgs.cs
- PageCodeDomTreeGenerator.cs