Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- IOThreadScheduler.cs
- FontNamesConverter.cs
- Guid.cs
- FeedUtils.cs
- SynchronizedInputPattern.cs
- EntityContainerEntitySet.cs
- RenderDataDrawingContext.cs
- MediaTimeline.cs
- LinqDataSource.cs
- DeviceContext2.cs
- XmlWhitespace.cs
- TickBar.cs
- PropertyMetadata.cs
- UserNameSecurityTokenProvider.cs
- DocumentPageTextView.cs
- XmlIncludeAttribute.cs
- DocumentOrderQuery.cs
- DeflateStream.cs
- AsymmetricAlgorithm.cs
- PlaceHolder.cs
- CFGGrammar.cs
- _SslSessionsCache.cs
- SizeAnimationClockResource.cs
- BaseUriHelper.cs
- UserPreferenceChangingEventArgs.cs
- FileAuthorizationModule.cs
- CacheChildrenQuery.cs
- DBConnectionString.cs
- DataObjectCopyingEventArgs.cs
- IPCCacheManager.cs
- FragmentNavigationEventArgs.cs
- DurationConverter.cs
- EventLogException.cs
- QueueProcessor.cs
- ContentElement.cs
- TypeListConverter.cs
- WeakReferenceList.cs
- ReadOnlyPropertyMetadata.cs
- PkcsMisc.cs
- QilDataSource.cs
- TextServicesContext.cs
- WindowsListBox.cs
- MachineKeySection.cs
- RbTree.cs
- WebContentFormatHelper.cs
- PasswordRecovery.cs
- FontSizeConverter.cs
- DataServiceProcessingPipelineEventArgs.cs
- SevenBitStream.cs
- Pens.cs
- WebServiceReceiveDesigner.cs
- ShowExpandedMultiValueConverter.cs
- DataSourceGeneratorException.cs
- SqlConnectionString.cs
- VBIdentifierNameEditor.cs
- ProfilePropertyNameValidator.cs
- WindowsFormsHost.cs
- IgnoreFileBuildProvider.cs
- PeerNameRecord.cs
- DurableInstanceManager.cs
- GridViewSelectEventArgs.cs
- Version.cs
- OdbcHandle.cs
- DetailsViewDeletedEventArgs.cs
- InputBinder.cs
- TypeSemantics.cs
- GeneralTransformGroup.cs
- ObservableDictionary.cs
- ObjectTokenCategory.cs
- DynamicAttribute.cs
- Configuration.cs
- RemotingService.cs
- Vector3DCollectionConverter.cs
- OracleParameterBinding.cs
- StylusPointProperties.cs
- ServiceDescriptions.cs
- XmlSchemaCompilationSettings.cs
- TableRow.cs
- DoubleLink.cs
- StringBuilder.cs
- StringDictionaryEditor.cs
- NameValuePermission.cs
- FixedHyperLink.cs
- RetriableClipboard.cs
- TextParagraphCache.cs
- AppLevelCompilationSectionCache.cs
- IdnMapping.cs
- TraceRecord.cs
- CompressionTransform.cs
- XmlSchemaComplexType.cs
- LinearKeyFrames.cs
- Assert.cs
- UnmanagedMemoryStream.cs
- ViewUtilities.cs
- SoapSchemaExporter.cs
- SmiRequestExecutor.cs
- TextServicesDisplayAttributePropertyRanges.cs
- StateManagedCollection.cs
- CreateParams.cs
- Rijndael.cs