Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripPanelRenderEventArgs.cs
- CommandBindingCollection.cs
- MaxSessionCountExceededException.cs
- BookmarkUndoUnit.cs
- XmlComplianceUtil.cs
- Asn1IntegerConverter.cs
- XmlReturnReader.cs
- ContextQuery.cs
- CustomPeerResolverService.cs
- WorkflowApplication.cs
- ModelItemCollectionImpl.cs
- Compiler.cs
- PageThemeCodeDomTreeGenerator.cs
- SmtpNegotiateAuthenticationModule.cs
- RuntimeCompatibilityAttribute.cs
- TextTreeFixupNode.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ErrorFormatterPage.cs
- ScrollBarAutomationPeer.cs
- Visitors.cs
- GiveFeedbackEvent.cs
- DbXmlEnabledProviderManifest.cs
- ContentWrapperAttribute.cs
- View.cs
- InArgumentConverter.cs
- GridViewItemAutomationPeer.cs
- DataRowExtensions.cs
- SiteMap.cs
- CompleteWizardStep.cs
- BufferedReadStream.cs
- Directory.cs
- SubMenuStyle.cs
- GuidConverter.cs
- MessageFault.cs
- NameObjectCollectionBase.cs
- ReaderContextStackData.cs
- Stroke.cs
- DiagnosticStrings.cs
- CallbackHandler.cs
- FileSecurity.cs
- DrawToolTipEventArgs.cs
- Evaluator.cs
- DesignerTextViewAdapter.cs
- XmlQueryTypeFactory.cs
- XmlBinaryReader.cs
- FormView.cs
- Triplet.cs
- TextInfo.cs
- LateBoundBitmapDecoder.cs
- precedingquery.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- Catch.cs
- ScrollBarAutomationPeer.cs
- TimeEnumHelper.cs
- DbConnectionStringBuilder.cs
- SchemaNotation.cs
- XmlCharCheckingReader.cs
- followingquery.cs
- ListDependantCardsRequest.cs
- CodeDomConfigurationHandler.cs
- TextParagraphView.cs
- GridViewCellAutomationPeer.cs
- ManualResetEvent.cs
- WindowsFormsSynchronizationContext.cs
- DummyDataSource.cs
- ElementUtil.cs
- Slider.cs
- MethodBody.cs
- RegexCapture.cs
- KeyValuePairs.cs
- GlyphRunDrawing.cs
- TrackPoint.cs
- dbenumerator.cs
- AdjustableArrowCap.cs
- TextFragmentEngine.cs
- LayoutInformation.cs
- WebPartDisplayModeCollection.cs
- GradientPanel.cs
- BrowserTree.cs
- FixedSOMTextRun.cs
- EngineSite.cs
- DecimalStorage.cs
- Transform3D.cs
- COM2Enum.cs
- SqlNodeAnnotations.cs
- RoutedEventArgs.cs
- InternalConfigHost.cs
- _NativeSSPI.cs
- FocusTracker.cs
- PackUriHelper.cs
- Parallel.cs
- PageParserFilter.cs
- DiagnosticEventProvider.cs
- HelloMessageApril2005.cs
- CellNormalizer.cs
- XamlStream.cs
- IdentityReference.cs
- Decoder.cs
- XpsSerializationManager.cs
- ImageFormat.cs